Skip to content

Commit

Permalink
CVPN-956: removing log noise
Browse files Browse the repository at this point in the history
  • Loading branch information
kp-stanislav-baiduzhyi committed Jun 18, 2024
1 parent ba85d90 commit 2c497e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lightway-core/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1315,8 +1315,8 @@ impl<AppState: Send> Connection<AppState> {
.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"),
}
Expand Down
4 changes: 1 addition & 3 deletions lightway-core/src/metrics.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use metrics::counter;
use tracing::warn;
use wolfssl::ProtocolVersion;

const METRIC_CONNECTION_ALLOC_FRAG_MAP: &str = "conn_alloc_frag_map";
Expand All @@ -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);
}

0 comments on commit 2c497e9

Please sign in to comment.