#NEWLINE# def execute( self , sql , params = None ) : #NEWLINE# #INDENT# start = time ( ) #NEWLINE# try : #NEWLINE# #INDENT# return super ( CursorDebugWrapper , self ) . execute ( sql , params ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# stop = time ( ) #NEWLINE# duration = ( stop - start ) #NEWLINE# sql = self . db . ops . last_executed_query ( self . cursor , sql , params ) #NEWLINE# self . db . queries_log . append ( { #NEWLINE# #INDENT# 'sql' : sql , #NEWLINE# 'time' : ( '%.3f' % duration ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# logger . debug ( '(%.3f) %s; args=%s' , duration , sql , stop , extra = { #NEWLINE# #INDENT# 'duration' : duration , #NEWLINE# 'sql' : sql , #NEWLINE# 'params' : params , #NEWLINE# #UNINDENT# } )