aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/logger.py
diff options
context:
space:
mode:
authorPjotr Prins2016-06-23 11:37:19 +0000
committerPjotr Prins2016-06-23 11:37:19 +0000
commitda1db6ae1df0b5c3d539c1d8b2d78d05ebe393e1 (patch)
tree450065716e31195ae00e7f3841fffff538a7a81d /wqflask/utility/logger.py
parent92d2f3f51d4191b079567f251348b316fe35feff (diff)
downloadgenenetwork2-da1db6ae1df0b5c3d539c1d8b2d78d05ebe393e1.tar.gz
Log: SQL queries
Diffstat (limited to 'wqflask/utility/logger.py')
-rw-r--r--wqflask/utility/logger.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/utility/logger.py b/wqflask/utility/logger.py
index ff53977e..c62ea2fe 100644
--- a/wqflask/utility/logger.py
+++ b/wqflask/utility/logger.py
@@ -77,10 +77,10 @@ class GNLogger:
if self.logger.getEffectiveLevel() < 20:
self.collectf(self.logger.debug,*args)
- def sql(self, description, sqlcommand, fun = None):
+ def sql(self, sqlcommand, fun = None):
"""Log SQL command, optionally invoking a timed fun"""
if LOG_SQL:
- self.info(description,sqlcommand)
+ self.info(stack()[1][3],sqlcommand)
if fun:
result = fun(sqlcommand)
if LOG_SQL: