aboutsummaryrefslogtreecommitdiff
path: root/wqflask/runserver.py
diff options
context:
space:
mode:
authorZachary Sloan2012-10-25 11:01:34 -0500
committerZachary Sloan2012-10-25 11:01:34 -0500
commitfa3247c3284034357719f9234a2942f9cda8c2b6 (patch)
treed1f5dfa66a4d3e706910eb80c77478d2f4f9b5e8 /wqflask/runserver.py
parent55d78345ba1cd2f56b1aecabf5bb3753bfd7ca13 (diff)
downloadgenenetwork2-fa3247c3284034357719f9234a2942f9cda8c2b6.tar.gz
Looks like the code that imports logging was changed in runserver.py
Small change to the code printing out fd in search_results.py
Diffstat (limited to 'wqflask/runserver.py')
-rw-r--r--wqflask/runserver.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/wqflask/runserver.py b/wqflask/runserver.py
index a61e4029..2a75faeb 100644
--- a/wqflask/runserver.py
+++ b/wqflask/runserver.py
@@ -11,12 +11,21 @@ from wqflask import app
#
# For more info see: http://www.cyberciti.biz/faq/iptables-block-port/
+#import logging
+#logging.basicConfig(filename="/tmp/flask_gn_log", level=logging.INFO)
+#
+#_log = logging.getLogger("search")
+#_ch = logging.StreamHandler()
+#_log.addHandler(_ch)
+
import logging
-logging.basicConfig(filename="/tmp/flask_gn_log", level=logging.INFO)
+#from themodule import TheHandlerYouWant
+file_handler = logging.FileHandler("/tmp/flask_gn_log")
+file_handler.setLevel(logging.DEBUG)
+app.logger.addHandler(file_handler)
-_log = logging.getLogger("search")
-_ch = logging.StreamHandler()
-_log.addHandler(_ch)
+import logging_tree
+logging_tree.printout()
app.run(host='0.0.0.0',
use_debugger=False,