Skip to content

Commit

Permalink
change traces to level TRACE
Browse files Browse the repository at this point in the history
  • Loading branch information
rkusa committed Dec 3, 2023
1 parent 58b6a29 commit 925932c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions postgres/src/future.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ where
match T::query(&self).await {
Ok(r) => {
let elapsed = start.elapsed();
tracing::debug!(?elapsed, "sql query finished");
tracing::trace!(?elapsed, "sql query finished");
return Ok(r);
}
Err(Error::Postgres(err)) if err.is_closed() && i <= 5 => {
// retry pool size + 1 times if connection is closed (might have
// received a closed one from the connection pool)
i += 1;
tracing::debug!("retry due to connection closed error");
tracing::trace!("retry due to connection closed error");
continue;
}
Err(err) => return Err(err),
Expand Down

0 comments on commit 925932c

Please sign in to comment.