aboutsummaryrefslogtreecommitdiff
path: root/wqflask/runserver.py
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/runserver.py')
-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()