fix(DX): print execution time after printing query (#33207)
Who reads it the other way around 🗿
This commit is contained in:
parent
a1dae98560
commit
35c1cc0276
1 changed files with 1 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue