Skip to content

Commit

Permalink
Log to stdout so that Webots doesn't colour them red
Browse files Browse the repository at this point in the history
  • Loading branch information
WillB97 committed Aug 17, 2024
1 parent 2c4836a commit f0774a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sbot/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def setup_logging(debug_logging: bool, trace_logging: bool) -> None:
"""
logformat = '%(name)s - %(levelname)s - %(message)s'
formatter = logging.Formatter(fmt=logformat)
handler = logging.StreamHandler()
# Log to stdout so that Webots doesn't colour them red
handler = logging.StreamHandler(stream=sys.stdout)
handler.setFormatter(formatter)

root_logger = logging.getLogger()
Expand Down

0 comments on commit f0774a4

Please sign in to comment.