Skip to content

Commit

Permalink
Print filename+line instead of just the class name in logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ToothyDev committed Sep 9, 2024
1 parent 95da9da commit 003f73c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

def configure_logging():
coloredlogs.install(level='INFO', level_styles=level_styles,
fmt='%(asctime)s %(name)s %(levelname)s %(message)s')
fmt='%(asctime)s {%(filename)s:%(lineno)s} %(levelname)s %(message)s')
discord_logger = logging.getLogger('discord')
discord_logger.setLevel(logging.WARN)

Expand Down

0 comments on commit 003f73c

Please sign in to comment.