aboutsummaryrefslogtreecommitdiff
path: root/wqflask/runserver.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/runserver.py')
-rw-r--r--wqflask/runserver.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/wqflask/runserver.py b/wqflask/runserver.py
index bfc27827..4556056d 100644
--- a/wqflask/runserver.py
+++ b/wqflask/runserver.py
@@ -20,6 +20,7 @@ from wqflask import app
#_ch = logging.StreamHandler()
#_log.addHandler(_ch)
+import logging
import utility.logger
logger = utility.logger.getLogger(__name__ )
@@ -27,6 +28,8 @@ logger.info(app.config)
from utility.tools import WEBSERVER_MODE
+werkzeug_logger = logging.getLogger('werkzeug')
+
if WEBSERVER_MODE == 'DEBUG':
app.run(host='0.0.0.0',
port=app.config['SERVER_PORT'],
@@ -35,6 +38,7 @@ if WEBSERVER_MODE == 'DEBUG':
threaded=False,
use_reloader=True)
elif WEBSERVER_MODE == 'DEV':
+ werkzeug_logger.setLevel(logging.WARNING)
app.run(host='0.0.0.0',
port=app.config['SERVER_PORT'],
debug=False,