Skip to content

Commit

Permalink
feat(transport): Move error! to debug! (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucioFranco committed Jan 15, 2021
1 parent dafea9a commit a7778ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tonic/src/transport/server/incoming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ where
}

SelectOutput::Err(e) => {
tracing::error!(message = "Accept loop error.", error = %e);
tracing::debug!(message = "Accept loop error.", error = %e);
}

SelectOutput::Done => {
Expand Down
4 changes: 2 additions & 2 deletions tonic/src/transport/service/reconnect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ where
return Poll::Ready(Err(e.into()));
} else {
let error = e.into();
tracing::error!("reconnect::poll_ready: {:?}", error);
tracing::debug!("reconnect::poll_ready: {:?}", error);
self.error = Some(error);
break;
}
Expand Down Expand Up @@ -141,7 +141,7 @@ where
fn call(&mut self, request: Request) -> Self::Future {
tracing::trace!("Reconnect::call");
if let Some(error) = self.error.take() {
tracing::error!("error: {:?}", error);
tracing::debug!("error: {}", error);
return ResponseFuture::error(error.into());
}

Expand Down

0 comments on commit a7778ad

Please sign in to comment.