diff options
author | Pjotr Prins | 2016-06-26 09:54:28 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-06-26 09:54:28 +0000 |
commit | e5db09b6da841eb077335a50c2dba1326d8dd670 (patch) | |
tree | f2c2c359d4ca09a8fb45e77211837dd066cec00f /wqflask/db | |
parent | d1192b1f244e8976fb53c260179eb3715029ebf4 (diff) | |
download | genenetwork2-e5db09b6da841eb077335a50c2dba1326d8dd670.tar.gz |
gn_server: simplify
Diffstat (limited to 'wqflask/db')
-rw-r--r-- | wqflask/db/call.py | 4 |
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) |