aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2015-04-19 10:55:42 +0200
committerPjotr Prins2015-04-19 10:55:42 +0200
commit5dad3ceb4acd652dd28d183f784005479089aa8a (patch)
tree3a9c29af569040b22b13b4e2ba5a564cbc20abff
parent70c3e826f12e772c98464a0072286d457a8431e8 (diff)
downloadgenenetwork2-5dad3ceb4acd652dd28d183f784005479089aa8a.tar.gz
Restore logger in runserver
-rwxr-xr-xwqflask/runserver.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/wqflask/runserver.py b/wqflask/runserver.py
index fadae6bf..20d79218 100755
--- a/wqflask/runserver.py
+++ b/wqflask/runserver.py
@@ -19,10 +19,9 @@ from wqflask import app
#_log.addHandler(_ch)
import logging
-#from themodule import TheHandlerYouWant
-# file_handler = logging.FileHandler("/tmp/flask_gn_log_danny_unsecure")
-# file_handler.setLevel(logging.DEBUG)
-# app.logger.addHandler(file_handler)
+file_handler = logging.FileHandler(app.config['LOGFILE'])
+file_handler.setLevel(logging.DEBUG)
+app.logger.addHandler(file_handler)
import logging_tree
logging_tree.printout()