fix(DX): print execution time after printing query (#33207)

Who reads it the other way around 🗿
This commit is contained in:
Ankush Menat 2025-07-03 14:48:19 +05:30 committed by GitHub
parent a1dae98560
commit 35c1cc0276
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -306,12 +306,11 @@ class Database:
):
raise
self.log_query(query, query_type, values, debug)
if debug:
time_end = time()
frappe.log(f"Execution time: {(time_end - time_start) * 1000:.3f} ms")
self.log_query(query, query_type, values, debug)
if auto_commit:
self.commit()