pgtools/pgmanager.py
changeset 1 ddce8990b976
parent 0 eaae9539e910
child 4 80634cb1c65b
--- a/pgtools/pgmanager.py	Thu May 26 18:09:05 2011 +0200
+++ b/pgtools/pgmanager.py	Wed Jun 01 11:48:07 2011 +0200
@@ -103,13 +103,13 @@
         try:
             return super(Cursor, self).execute(query, args)
         finally:
-            log.debug(self.query)
+            log.debug(self.query.decode('utf8'))
 
     def callproc(self, procname, args=None):
         try:
             return super(Cursor, self).callproc(procname, args)
         finally:
-            log.debug(self.query)
+            log.debug(self.query.decode('utf8'))
 
     def row_dict(self, row, lstrip=None):
         adjustname = lambda a: a