dblog-fix-2
All checks were successful
Deploy on push / deploy (push) Successful in 22s

This commit is contained in:
Untone 2024-03-28 16:17:34 +03:00
parent bb0412bb5c
commit 057b43730e

View File

@ -107,5 +107,5 @@ def after_cursor_execute(conn, cursor, statement, parameters, context, executema
else f'{statement}'.replace('\n', ' ')
)
if elapsed > 1 and str(conn.last_statement) != str(statement):
conn.last_statement = str(conn.statement)
conn.last_statement = str(statement)
logger.debug(f"\n{query}\n{'*' * math.floor(elapsed)} {elapsed:.3f} s\n")