From 5dad3ceb4acd652dd28d183f784005479089aa8a Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 19 Apr 2015 10:55:42 +0200 Subject: Restore logger in runserver --- wqflask/runserver.py | 7 +++---- 1 file 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() -- cgit v1.2.3