aboutsummaryrefslogtreecommitdiff
path: root/wqflask/db
diff options
context:
space:
mode:
authorPjotr Prins2016-06-23 08:06:15 +0000
committerPjotr Prins2016-06-23 08:06:15 +0000
commit1c20ebfa0a314bd3cb8f5698e976a22423c9f522 (patch)
tree06fdf41322b39acd65e8ae00c0837d0fb820a275 /wqflask/db
parent40f2242920c7696841ea322cd6f0aae8320462de (diff)
downloadgenenetwork2-1c20ebfa0a314bd3cb8f5698e976a22423c9f522.tar.gz
Fixed missing GN_SERVER_URL
Diffstat (limited to 'wqflask/db')
-rw-r--r--wqflask/db/call.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/wqflask/db/call.py b/wqflask/db/call.py
index b380b520..ac9f7fe5 100644
--- a/wqflask/db/call.py
+++ b/wqflask/db/call.py
@@ -29,7 +29,8 @@ when set.
return fetchone(query)
def fetchone(query):
- """Return tuple containing one row by calling SQL directly
+ """Return tuple containing one row by calling SQL directly (the
+original fetchone, but with logging)
"""
with Bench("SQL",LOG_SQL):
@@ -47,5 +48,5 @@ def gn_server(path):
res = urllib2.urlopen(GN_SERVER_URL+path)
rest = res.read()
res2 = json.loads(rest)
- logger.info(res2)
+ logger.debug(res2)
return res2