From 2d36a1daf42cc06a5a97f0c7722cbcf1a6f71762 Mon Sep 17 00:00:00 2001 From: Erik Grinaker Date: Wed, 8 Jan 2025 12:22:17 +0100 Subject: [PATCH] postgres_backend: don't print error stack traces --- libs/postgres_backend/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/postgres_backend/src/lib.rs b/libs/postgres_backend/src/lib.rs index 8c024375c1..d8d2c84662 100644 --- a/libs/postgres_backend/src/lib.rs +++ b/libs/postgres_backend/src/lib.rs @@ -1013,7 +1013,7 @@ fn log_query_error(query: &str, e: &QueryError) { } } QueryError::Disconnected(other_connection_error) => { - error!("query handler for '{query}' failed with connection error: {other_connection_error:?}") + error!("query handler for '{query}' failed with connection error: {other_connection_error}") } QueryError::SimulatedConnectionError => { error!("query handler for query '{query}' failed due to a simulated connection error") @@ -1031,7 +1031,7 @@ fn log_query_error(query: &str, e: &QueryError) { warn!("query handler for '{query}' failed with authentication error: {e}"); } QueryError::Other(e) => { - error!("query handler for '{query}' failed: {e:?}"); + error!("query handler for '{query}' failed: {e}"); } } }