replace iostream warning message with info (#2207)

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
This commit is contained in:
Davor Runje
2024-03-30 01:15:39 +01:00
committed by GitHub
parent 16db0b957f
commit 20893fc912

View File

@@ -76,8 +76,10 @@ class IOStream(InputStream, OutputStream, Protocol):
"""
iostream = IOStream._default_io_stream.get()
if iostream is None:
logger.warning("No default IOStream has been set, defaulting to IOConsole.")
return IOStream.get_global_default()
logger.info("No default IOStream has been set, defaulting to IOConsole.")
iostream = IOStream.get_global_default()
# Set the default IOStream of the current context (thread/cooroutine)
IOStream.set_default(iostream)
return iostream
@staticmethod