This commit is contained in:
parent
0d1b73878e
commit
0e701020bb
|
@ -40,6 +40,7 @@ def before_cursor_execute(conn, cursor, statement, parameters, context, executem
|
||||||
def after_cursor_execute(conn, cursor, statement, parameters, context, executemany):
|
def after_cursor_execute(conn, cursor, statement, parameters, context, executemany):
|
||||||
total = time.time() - conn.info['query_start_time'].pop(-1)
|
total = time.time() - conn.info['query_start_time'].pop(-1)
|
||||||
stars = '*' * math.floor(total*1000)
|
stars = '*' * math.floor(total*1000)
|
||||||
|
if stars:
|
||||||
logger.debug(f' {stars} {total*1000} s\n')
|
logger.debug(f' {stars} {total*1000} s\n')
|
||||||
|
|
||||||
def local_session(src=''):
|
def local_session(src=''):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user