Skip to content

Commit

Permalink
Set console logging to info level
Browse files Browse the repository at this point in the history
  • Loading branch information
nonchris committed Sep 2, 2021
1 parent 60a1b4f commit 95ab2be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bot/log_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

# logger for writing to file
file_logger = logging.FileHandler('data/events.log')
file_logger.setLevel(logging.INFO) # everything into the logging file
file_logger.setLevel(logging.INFO)
file_logger.setFormatter(formatter)

# logger for console prints
console_logger = logging.StreamHandler()
console_logger.setLevel(logging.WARNING) # only important stuff to the terminal
console_logger.setLevel(logging.INFO)
console_logger.setFormatter(formatter)

# get new logger
Expand Down

0 comments on commit 95ab2be

Please sign in to comment.