R [querier] debugging tweaks
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Sat, 01 Aug 2009 01:22:01 +0200
changeset 2621 1b9d08840a0e
parent 2620 de68f84b8f54
child 2622 3c7edaa6c6d2
R [querier] debugging tweaks
server/querier.py
--- a/server/querier.py	Sat Aug 01 01:20:58 2009 +0200
+++ b/server/querier.py	Sat Aug 01 01:22:01 2009 +0200
@@ -586,9 +586,10 @@
         always use substitute arguments in queries (eg avoid query such as
         'Any X WHERE X eid 123'!)
         """
-        if server.DEBUG & (server.DBG_RQL | server.DBG_RQL):
-            print '*'*80
-            print 'QUERIER INPUT', rql
+        if server.DEBUG & (server.DBG_RQL | server.DBG_SQL):
+            if server.DEBUG & server.DBG_MORE:
+                print '*'*80
+            print 'QUERIER INPUT', rql, args
         # parse the query and binds variables
         if eid_key is not None:
             if not isinstance(eid_key, (tuple, list)):