From 2f6bae4e2afc8a3f7a2c2b5f24083bb12ee553be Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sun, 10 May 2020 17:49:12 +0300 Subject: [PATCH] sql: do not send DC_EVENT_ERROR on database errors These errors are usually just "database busy" errors, it is enough to write them to the log instead of displaying to the user. --- src/sql.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql.rs b/src/sql.rs index 2e5ef48f2..a09380a8a 100644 --- a/src/sql.rs +++ b/src/sql.rs @@ -242,7 +242,7 @@ impl Sql { match self.query_get_value_result(query, params) { Ok(res) => res, Err(err) => { - error!(context, "sql: Failed query_row: {}", err); + warn!(context, "sql: Failed query_row: {}", err); None } }