Skip to content

Commit

Permalink
Warn if there is an error injected
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-casperlabs committed Feb 27, 2024
1 parent 43a0e9a commit 014daa2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,8 @@ where
}
Outcome::Fatal(err_msg) => {
// The remote messed up, begin shutting down due to an error.
#[cfg(feature = "tracing")]
tracing::warn!(err_msg_header=%err_msg.header(), "injecting error due to fatal outcome");
self.inject_error(err_msg);
}
Outcome::Success(successful_read) => {
Expand Down

0 comments on commit 014daa2

Please sign in to comment.