Skip to content

Commit

Permalink
fix: logging
Browse files Browse the repository at this point in the history
  • Loading branch information
severinsimmler committed Nov 25, 2018
1 parent 4119a5f commit c8f6f7a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/utils.py
Expand Up @@ -47,8 +47,9 @@ def init_logging(level):
filemode="w")
# Disable logging for Flask and Werkzeug
# (this would be a lot of spam, even level INFO):
logging.getLogger("flask").setLevel(logging.ERROR)
logging.getLogger("werkzeug").setLevel(logging.ERROR)
if level > logging.DEBUG:
logging.getLogger("flask").setLevel(logging.ERROR)
logging.getLogger("werkzeug").setLevel(logging.ERROR)


def init_db(app):
Expand Down

0 comments on commit c8f6f7a

Please sign in to comment.