From e571324ab33939ce9f4fc2e02108d6ae36438315 Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Fri, 14 Aug 2009 19:01:11 +0300 Subject: Introduce 'debug2' loglevel, use it for SQL Sometimes we want to debug SQL, not always though. bzr revid: p_christ@hol.gr-20090814160111-fhw1j4jmx94t2hjv --- bin/sql_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/sql_db.py') diff --git a/bin/sql_db.py b/bin/sql_db.py index edf9a2aeaec..85bd6fc88d9 100644 --- a/bin/sql_db.py +++ b/bin/sql_db.py @@ -55,7 +55,7 @@ from mx import DateTime as mdt re_from = re.compile('.* from "?([a-zA-Z_0-9]+)"? .*$'); re_into = re.compile('.* into "?([a-zA-Z_0-9]+)"? .*$'); -def log(msg, lvl=netsvc.LOG_DEBUG): +def log(msg, lvl=netsvc.LOG_DEBUG2): logger = netsvc.Logger() logger.notifyChannel('sql', lvl, msg) -- cgit v1.2.3