Skip to content

Commit

Permalink
Log errors that occur during /explain
Browse files Browse the repository at this point in the history
  • Loading branch information
plcplc committed Nov 2, 2023
1 parent d157ab0 commit 906ef9c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/connectors/ndc-postgres/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,15 @@ impl connector::Connector for Postgres {
let conf = &configuration.as_runtime_configuration();
explain::explain(conf, state, query_request)
.await
.map_err(|err| {
tracing::error!(
meta.signal_type = "log",
event.domain = "ndc",
event.name = "Explain error",
body = %err
);
err
})
.map(Into::into)
}

Expand Down

0 comments on commit 906ef9c

Please sign in to comment.