diff --git a/src/io.rs b/src/io.rs index 9d27998..d156f4d 100644 --- a/src/io.rs +++ b/src/io.rs @@ -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) => {