Skip to content

Commit

Permalink
Log to stderr instead of stdout by default
Browse files Browse the repository at this point in the history
  • Loading branch information
frereit authored Jan 14, 2025
1 parent e01e264 commit 1651a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bleak/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
_logger.addHandler(logging.NullHandler())
if bool(os.environ.get("BLEAK_LOGGING", False)):
FORMAT = "%(asctime)-15s %(name)-8s %(threadName)s %(levelname)s: %(message)s"
handler = logging.StreamHandler(sys.stdout)
handler = logging.StreamHandler(sys.stderr)
handler.setLevel(logging.DEBUG)
handler.setFormatter(logging.Formatter(fmt=FORMAT))
_logger.addHandler(handler)
Expand Down

0 comments on commit 1651a66

Please sign in to comment.