server/sources/native.py
changeset 10136 c33dcd18e0bb
parent 10125 bc6461a7d2da
parent 10076 3810332ef42c
child 10187 0df931eb08de
--- a/server/sources/native.py	Wed Jan 07 14:07:17 2015 +0100
+++ b/server/sources/native.py	Wed Jan 07 15:01:23 2015 +0100
@@ -711,10 +711,7 @@
         """
         cursor = cnx.cnxset.cu
         if server.DEBUG & server.DBG_SQL:
-            cnx = cnx.cnxset.cnx
-            # getattr to get the actual connection if cnx is a CnxLoggingWrapper
-            # instance
-            print 'exec', query, args, getattr(cnx, '_cnx', cnx)
+            print 'exec', query, args, cnx.cnxset.cnx
         try:
             # str(query) to avoid error if it's a unicode string
             cursor.execute(str(query), args)