aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/logger.py
diff options
context:
space:
mode:
authorPjotr Prins2016-06-19 16:41:01 +0000
committerPjotr Prins2016-06-19 16:41:01 +0000
commit2bae8718f4d4ec185586d12ae007f79a8dd89136 (patch)
tree28d608fdc2c0784393ac28187bc0f4d50998e25c /wqflask/utility/logger.py
parentaae827674cdbe46c7f1ce5d2246bf485a24dbbb3 (diff)
downloadgenenetwork2-2bae8718f4d4ec185586d12ae007f79a8dd89136.tar.gz
gn_server: Species info can be fetched from gn_server
Diffstat (limited to 'wqflask/utility/logger.py')
-rw-r--r--wqflask/utility/logger.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/wqflask/utility/logger.py b/wqflask/utility/logger.py
index 0d374f1a..6a8b3e7e 100644
--- a/wqflask/utility/logger.py
+++ b/wqflask/utility/logger.py
@@ -78,8 +78,9 @@ class GNLogger:
"""Log SQL command, optionally invoking a timed fun"""
self.info(description,sqlcommand)
if fun:
- self.info("Invoking function")
- return fun(sqlcommand)
+ result = fun(sqlcommand)
+ self.info("result:",result)
+ return result
def collect(self,fun,*args):
"""Collect arguments and use fun to output one by one"""