lesslog
All checks were successful
Deploy to core / deploy (push) Successful in 3m34s

This commit is contained in:
Untone 2024-02-20 17:27:30 +03:00
parent 0d1b73878e
commit 0e701020bb

View File

@ -40,7 +40,8 @@ def before_cursor_execute(conn, cursor, statement, parameters, context, executem
def after_cursor_execute(conn, cursor, statement, parameters, context, executemany):
total = time.time() - conn.info['query_start_time'].pop(-1)
stars = '*' * math.floor(total*1000)
logger.debug(f' {stars} {total*1000} s\n')
if stars:
logger.debug(f' {stars} {total*1000} s\n')
def local_session(src=''):
return Session(bind=engine, expire_on_commit=False)