diff --git a/lightway-core/src/connection.rs b/lightway-core/src/connection.rs index e6b5b66..76cb407 100644 --- a/lightway-core/src/connection.rs +++ b/lightway-core/src/connection.rs @@ -1315,8 +1315,8 @@ impl Connection { .send(inside_pkt, self.app_state_mut()) { IOCallbackResult::Ok(_nr) => {} - IOCallbackResult::Err(err) => { - metrics::inside_io_send_failed(err); + IOCallbackResult::Err(_err) => { + metrics::inside_io_send_failed(); } IOCallbackResult::WouldBlock => warn!("Send to inside IO would block"), } diff --git a/lightway-core/src/metrics.rs b/lightway-core/src/metrics.rs index a82282a..2348781 100644 --- a/lightway-core/src/metrics.rs +++ b/lightway-core/src/metrics.rs @@ -1,5 +1,4 @@ use metrics::counter; -use tracing::warn; use wolfssl::ProtocolVersion; const METRIC_CONNECTION_ALLOC_FRAG_MAP: &str = "conn_alloc_frag_map"; @@ -21,7 +20,6 @@ pub(crate) fn wolfssl_appdata(tls_version: &ProtocolVersion) { } /// A call to [`crate::io::InsideIOSendCallback::send`] failed -pub(crate) fn inside_io_send_failed(err: std::io::Error) { - warn!(%err, "Failed to send to inside IO"); +pub(crate) fn inside_io_send_failed() { counter!(METRIC_INSIDE_IO_SEND_FAILED).increment(1); }