From 35c1cc0276f5849325a9370327a31762f920eb51 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Thu, 3 Jul 2025 14:48:19 +0530 Subject: [PATCH] fix(DX): print execution time after printing query (#33207) Who reads it the other way around :moyai: --- frappe/database/database.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frappe/database/database.py b/frappe/database/database.py index 97f16e2310..91b27f60b4 100644 --- a/frappe/database/database.py +++ b/frappe/database/database.py @@ -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()