server/sources/__init__.py
branchstable
changeset 7779 3826d8480a68
parent 7697 ef50074a0314
child 7815 2a164a9cf81c
--- a/server/sources/__init__.py	Mon Sep 12 17:24:14 2011 +0200
+++ b/server/sources/__init__.py	Tue Sep 13 14:41:53 2011 +0200
@@ -37,11 +37,11 @@
 
 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, repr(union.as_string()))
         if varmap:
             print '    using varmap', varmap
         if server.DEBUG & server.DBG_MORE:
-            print '    args', args
+            print '    args', repr(args)
             print '    cache key', cachekey
             print '    solutions', ','.join(str(s.solutions)
                                             for s in union.children)