Skip to content

Commit

Permalink
postgres_backend: don't print error stack traces
Browse files Browse the repository at this point in the history
  • Loading branch information
erikgrinaker committed Jan 8, 2025
1 parent dc28424 commit 2d36a1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/postgres_backend/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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}");
}
}
}
Expand Down

0 comments on commit 2d36a1d

Please sign in to comment.