Werkzeug: Do not log every request when not using debug mode

This commit is contained in:
milaq 2019-08-19 13:42:19 +02:00
parent dd28e64c61
commit 5205ec4e7c

View file

@ -21,6 +21,8 @@ def launch_server():
if arguments.debug:
logging.getLogger().setLevel(logging.DEBUG)
logging.debug("Debug logging enabled")
else:
logging.getLogger('werkzeug').setLevel(logging.WARNING)
server.run(arguments.config, arguments.address, arguments.port)