Fix PgManager logging.
authorRadek Brich <radek.brich@devl.cz>
Fri, 04 Oct 2013 16:37:29 +0200
changeset 89 6b72d61837b1
parent 88 b8b2d28a7f35
child 90 43e5d2cf4ddb
Fix PgManager logging.
pgtoolkit/pgmanager.py
--- a/pgtoolkit/pgmanager.py	Tue Sep 24 13:34:17 2013 +0200
+++ b/pgtoolkit/pgmanager.py	Fri Oct 04 16:37:29 2013 +0200
@@ -206,7 +206,7 @@
 
     def _log_query(self, query='?', args=None):
         name = self.connection.name if hasattr(self.connection, 'name') else '-'
-        query = self.query or self.mogrify(query, args)
+        query = self.mogrify(query, args)
         log_sql.debug('[%s] %s' % (name, query.decode('utf8')))
 
     def _log_exception(self):