Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions skyllh/core/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def setup_logger(
The log level of the console handler. If None, it uses `log_level`.
stream : data stream | None
The stream to which the console handler will write.
If None, it defaults to `sys.stderr`.
If None, it defaults to `sys.stdout`.
log_file : str | None
If not ``None``, file handlers for DEBUG messages will be installed
and those messages will be stored in the given file.
Expand Down Expand Up @@ -131,7 +131,7 @@ def setup_logger(
else:
console_level = _resolve_log_level(console_level)
if stream is None:
stream = sys.stderr
stream = sys.stdout

# deduplicate StreamHandler targeting same stream
exists = any(
Expand Down
2 changes: 1 addition & 1 deletion tests/core/test_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_console_handlers(self):
self.assertEqual(logging.getLogger('skyllh').level, logging.INFO)
self.assertEqual(logging.getLogger(self.user_logger_name).level, logging.INFO)

# Redirect current console stderr stream to test stream.
# Redirect current console stream to test stream.
for logger_name in ('skyllh', self.user_logger_name):
lg = logging.getLogger(logger_name)
for handler in lg.handlers:
Expand Down
Loading