aboutsummaryrefslogtreecommitdiff
path: root/wqflask/runserver.py
diff options
context:
space:
mode:
authorPjotr Prins2016-06-18 08:06:59 +0000
committerPjotr Prins2016-06-18 08:06:59 +0000
commit0a11c10237d899cfdddfcfcf4d17140da9421f7d (patch)
tree50c7cd2fd6f4eba2d8403a32f3fb31651d38d2f9 /wqflask/runserver.py
parentee70713e9a296ac9a855c73c3f49f585bae8946a (diff)
downloadgenenetwork2-0a11c10237d899cfdddfcfcf4d17140da9421f7d.tar.gz
Logger: replacing print statements
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,