[server debug] indent for more readability
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 07 Aug 2009 10:21:39 +0200
changeset 2719 6df328b47361
parent 2718 3a56b87bb5d6
child 2720 405c09e7df6e
[server debug] indent for more readability
server/sources/__init__.py
--- a/server/sources/__init__.py	Fri Aug 07 10:21:19 2009 +0200
+++ b/server/sources/__init__.py	Fri Aug 07 10:21:39 2009 +0200
@@ -18,14 +18,14 @@
 
 def dbg_st_search(uri, union, varmap, args, cachekey=None, prefix='rql for'):
     if server.DEBUG & server.DBG_RQL:
-        print '%s %s source: %s' % (prefix, uri, union.as_string())
+        print '  %s %s source: %s' % (prefix, uri, union.as_string())
         if varmap:
-            print '  using varmap', varmap
+            print '    using varmap', varmap
         if server.DEBUG & server.DBG_MORE:
-            print '  args', args
-            print '  cache key', cachekey
-            print '  solutions', ','.join(str(s.solutions)
-                                          for s in union.children)
+            print '    args', args
+            print '    cache key', cachekey
+            print '    solutions', ','.join(str(s.solutions)
+                                            for s in union.children)
     # return true so it can be used as assertion (and so be killed by python -O)
     return True