profiling-less
Some checks failed
Deploy to core / deploy (push) Failing after 6s

This commit is contained in:
Untone 2024-02-21 22:16:29 +03:00
parent d50064a97e
commit fc3f859602

View File

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