From fe3b7c63ed424cd6c66908257da39033008a4319 Mon Sep 17 00:00:00 2001 From: Daniel Silva Date: Thu, 16 Jul 2026 14:35:11 -0300 Subject: [PATCH] Use timeSpent instead of _readElapsed to decide if we should log or not --- sqlitecluster/SQLite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlitecluster/SQLite.cpp b/sqlitecluster/SQLite.cpp index 445e7ecdf..85e0709c0 100644 --- a/sqlitecluster/SQLite.cpp +++ b/sqlitecluster/SQLite.cpp @@ -659,7 +659,7 @@ bool SQLite::read(const string& query, const map& params, SQR // If we're not inside a transaction, this doesn't get added to our normal transaction timing. // This log line will happen a lot. Let's log only when it takes more than 100ms to complete. - if (!_insideTransaction && _readElapsed > 100'000) { + if (!_insideTransaction && timeSpent > 100'000) { SINFO("Read with auto-transaction timing info", { {"totalTransactionElapsed", to_string(timeSpent / 1000)}, });