From 3a9e6c6bed3c7e80fb038da3a0bc874554a7d77e Mon Sep 17 00:00:00 2001 From: Tyler Karaszewski Date: Mon, 28 Oct 2024 11:12:14 -0700 Subject: [PATCH] Demote warning --- libstuff/libstuff.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libstuff/libstuff.cpp b/libstuff/libstuff.cpp index 7a01c7a4d..4f8370a69 100644 --- a/libstuff/libstuff.cpp +++ b/libstuff/libstuff.cpp @@ -2712,7 +2712,8 @@ int SQuery(sqlite3* db, const char* e, const string& sql, SQResult& result, int6 // We don't warn for constraints errors because sometimes they're allowed, and BedrockCore.cpp will warn for the ones that aren't. // This prevents creating bugbot issues for the allowed cases. We still log as INFO though so we can diagnose the query with the problem. - if (error == SQLITE_CONSTRAINT) { + // We also don't warn for `interrupt` because it generally means a timeout which is handled separately. + if (error == SQLITE_CONSTRAINT || error == SQLITE_INTERRUPT) { SINFO("'" << e << "', query failed with error #" << error << " (" << sqlite3_errmsg(db) << "): " << sqlToLog); } else { SWARN("'" << e << "', query failed with error #" << error << " (" << sqlite3_errmsg(db) << "): " << sqlToLog);