mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
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.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user