Werkzeug: Do not log every request when not using debug mode
This commit is contained in:
parent
dd28e64c61
commit
5205ec4e7c
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue