aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/logger.py
diff options
context:
space:
mode:
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: