diff options
author | Zachary Sloan | 2012-10-25 11:01:34 -0500 |
---|---|---|
committer | Zachary Sloan | 2012-10-25 11:01:34 -0500 |
commit | fa3247c3284034357719f9234a2942f9cda8c2b6 (patch) | |
tree | d1f5dfa66a4d3e706910eb80c77478d2f4f9b5e8 /wqflask/runserver.py | |
parent | 55d78345ba1cd2f56b1aecabf5bb3753bfd7ca13 (diff) | |
download | genenetwork2-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.py | 17 |
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, |