aboutsummaryrefslogtreecommitdiff
path: root/wqflask/db
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/db')
-rw-r--r--wqflask/db/call.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/wqflask/db/call.py b/wqflask/db/call.py
index 6c195afa..1a1b3adc 100644
--- a/wqflask/db/call.py
+++ b/wqflask/db/call.py
@@ -25,7 +25,9 @@ GN_SERVER result when set (which should return a Tuple)
res2 = func(result)
else:
res2 = result,
- logger.debug(path,query,res2)
+ if LOG_SQL:
+ logger.debug("Replaced SQL call",query)
+ logger.debug(path,res2)
return res2
else:
return fetchone(query)