Do not log to stdout by default

Stdout is for program output, not for logging. By sending log messages
to stdout, openstacksdk breaks CLI output.

Change-Id: I3a613c44230d9c6ac39980ce44196acec14fa31d
This commit is contained in:
Dmitry Tantsur 2022-05-23 14:20:03 +02:00
parent ba96fe8507
commit f088362797

View File

@ -81,7 +81,7 @@ def enable_logging(
:rtype: None
"""
if not stream and not path:
stream = sys.stdout
stream = sys.stderr
if http_debug:
debug = True