From 1c20ebfa0a314bd3cb8f5698e976a22423c9f522 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Thu, 23 Jun 2016 08:06:15 +0000 Subject: Fixed missing GN_SERVER_URL --- wqflask/db/call.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'wqflask/db') 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 -- cgit v1.2.3