From da1db6ae1df0b5c3d539c1d8b2d78d05ebe393e1 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Thu, 23 Jun 2016 11:37:19 +0000 Subject: Log: SQL queries --- wqflask/utility/logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wqflask/utility') 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: -- cgit v1.2.3