diff options
author | Pjotr Prins | 2016-06-23 11:37:19 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-06-23 11:37:19 +0000 |
commit | da1db6ae1df0b5c3d539c1d8b2d78d05ebe393e1 (patch) | |
tree | 450065716e31195ae00e7f3841fffff538a7a81d /wqflask/utility | |
parent | 92d2f3f51d4191b079567f251348b316fe35feff (diff) | |
download | genenetwork2-da1db6ae1df0b5c3d539c1d8b2d78d05ebe393e1.tar.gz |
Log: SQL queries
Diffstat (limited to 'wqflask/utility')
-rw-r--r-- | wqflask/utility/logger.py | 4 |
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: |