Skip to content

Commit fd567e2

Browse files
committed
chore: Increase severity for pg conn errors
From WARN to ERROR. Signed-off-by: Konstantin Shabanov <mail@etehtsea.me>
1 parent fc69afa commit fd567e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/outbound-pg/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ impl OutboundPg {
242242
async fn build_client(address: &str) -> anyhow::Result<Client> {
243243
let config = address.parse::<tokio_postgres::Config>()?;
244244

245-
tracing::log::debug!("Build new connection: {}", address);
245+
tracing::debug!("Build new connection: {}", address);
246246

247247
if config.get_ssl_mode() == SslMode::Disable {
248248
connect(config).await
@@ -275,7 +275,7 @@ where
275275
{
276276
tokio::spawn(async move {
277277
if let Err(e) = connection.await {
278-
tracing::warn!("Postgres connection error: {}", e);
278+
tracing::error!("Postgres connection error: {}", e);
279279
}
280280
});
281281
}

0 commit comments

Comments
 (0)