Skip to content

Commit

Permalink
set default logging level to critical
Browse files Browse the repository at this point in the history
  • Loading branch information
Der-Henning committed Apr 26, 2023
1 parent ea519fa commit 9be0bfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ prometheus-client==0.16.0
pycron==3.0.0
python-pushsafer==1.1
python-telegram-bot==13.15
pytz==2023.2
pytz==2023.3
pytz-deprecation-shim==0.1.0.post0
requests==2.28.2
six==1.16.0
tornado==6.1
tzdata==2023.2
tzdata==2023.3
tzlocal==4.3
urllib3==1.26.15
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def main() -> NoReturn:

# Set all loggers to level Error
for logger_name in logging.root.manager.loggerDict:
logging.getLogger(logger_name).setLevel(logging.ERROR)
logging.getLogger(logger_name).setLevel(logging.CRITICAL)

# Define stream formatter and handler
stream_formatter = colorlog.ColoredFormatter(
Expand Down

0 comments on commit 9be0bfd

Please sign in to comment.