Skip to content

Commit

Permalink
[fix] define log format for debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
grindsa committed Jan 1, 2025
1 parent c28c87b commit da805c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dkb_robo/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def logger_setup(debug: bool) -> logging.Logger:

# define standard log format
log_format = None
if not debug:
if debug:
log_format = '%(module)s: %(message)s'
else:
log_format = '%(message)s'

logging.basicConfig(
Expand Down

0 comments on commit da805c5

Please sign in to comment.