diff --git a/libs/utils/src/postgres_backend.rs b/libs/utils/src/postgres_backend.rs index fab3c388b1..857df0ec84 100644 --- a/libs/utils/src/postgres_backend.rs +++ b/libs/utils/src/postgres_backend.rs @@ -433,7 +433,12 @@ impl PostgresBackend { // full cause of the error, not just the top-level context + its trace. // We don't want to send that in the ErrorResponse though, // because it's not relevant to the compute node logs. - error!("query handler for '{}' failed: {:?}", query_string, e); + if query_string.starts_with("callmemaybe") { + // FIXME avoid printing a backtrace for tenant x not found errors until this is properly fixed + error!("query handler for '{}' failed: {}", query_string, e); + } else { + error!("query handler for '{}' failed: {:?}", query_string, e); + } self.write_message_noflush(&BeMessage::ErrorResponse(&e.to_string()))?; // TODO: untangle convoluted control flow if e.to_string().contains("failed to run") {