aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Sloan2012-10-25 11:01:34 -0500
committerZachary Sloan2012-10-25 11:01:34 -0500
commitfa3247c3284034357719f9234a2942f9cda8c2b6 (patch)
treed1f5dfa66a4d3e706910eb80c77478d2f4f9b5e8
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
-rw-r--r--wqflask/runserver.py17
-rw-r--r--wqflask/wqflask/search_results.py12
2 files changed, 20 insertions, 9 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,
diff --git a/wqflask/wqflask/search_results.py b/wqflask/wqflask/search_results.py
index d44fbcef..1b846771 100644
--- a/wqflask/wqflask/search_results.py
+++ b/wqflask/wqflask/search_results.py
@@ -68,11 +68,13 @@ class SearchResultPage(templatePage):
print("ge0")
#return
- print("ge0.5")
- #causeerror
- print("type of fd:", type(fd))
- self.database = [fd['database']]
- print("ge0.55")
+ print("Start...")
+ print("Type of fd:", type(fd))
+ print("Value of fd:", pf(fd))
+ database = [fd['database']]
+ print("End...")
+
+ # change back to self.database
if not self.database or self.database == 'spacer':
#Error, No database selected
heading = "Search Result"