fmt+refactor
All checks were successful
Deploy on push / deploy (push) Successful in 24s

This commit is contained in:
2024-02-23 19:35:40 +03:00
parent 14947225a6
commit e80b3ac770
9 changed files with 307 additions and 119 deletions

View File

@@ -33,9 +33,7 @@ def after_cursor_execute(conn, cursor, statement, parameters, context, executema
elapsed = time.time() - conn.query_start_time
del conn.query_start_time
if elapsed > 0.9: # Adjust threshold as needed
logger.debug(
f"\n{statement}\n{'*' * math.floor(elapsed)} {elapsed:.3f} s"
)
logger.debug(f"\n{statement}\n{'*' * math.floor(elapsed)} {elapsed:.3f} s")
def local_session(src=''):