Project

General

Profile

« Previous | Next » 

Revision 3273

sql.py: DbConn.with_savepoint(): Log transaction profiling info with level=4 like the rest of the transaction commands, so that it isn't output when the transaction itself should be hidden (e.g. for name versioning or internal commands)

View differences:

lib/sql.py
415 415
        savepoint = 'level_'+str(self._savepoint)
416 416
        
417 417
        if self.debug:
418
            self.log_debug('Begin transaction', level=3)
418
            self.log_debug('Begin transaction', level=4)
419 419
            profiler = profiling.ItersProfiler(start_now=True, iter_text='row')
420 420
        
421 421
        # Must happen before running queries so they don't get autocommitted
......
445 445
            
446 446
            if self.debug:
447 447
                profiler.stop(self.profile_row_ct)
448
                self.log_debug('End transaction\n'+profiler.msg(), level=3)
448
                self.log_debug('End transaction\n'+profiler.msg(), level=4)
449 449
            
450 450
            self.do_autocommit() # OK to do this after ROLLBACK TO SAVEPOINT
451 451
    

Also available in: Unified diff