From 59d81a1fd667fc2a01afa211553bde85681a1834 Mon Sep 17 00:00:00 2001 From: Alex Emmet <111742636+Alex-Emmet@users.noreply.github.com> Date: Mon, 9 Mar 2026 22:30:15 +0100 Subject: [PATCH] [fix] no longer logging ping pong --- Cargo.lock | 17 +++++++++-------- src/server/omikron_connection.rs | 9 ++++++--- 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0ca5d3b..2f70fe0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1026,8 +1026,9 @@ dependencies = [ [[package]] name = "epsilon-core" version = "0.1.0" -source = "git+https://github.com/Tensamin/Epsilon.git#05a7b22b2e05a9b023b0d976d65dddf06edccd7c" +source = "git+https://github.com/Tensamin/Epsilon.git#809a32581843e663d35d4b3222f2cc59371d2786" dependencies = [ + "base64", "byteorder", "rand 0.8.5", "strum 0.28.0", @@ -1037,7 +1038,7 @@ dependencies = [ [[package]] name = "epsilon-native" version = "0.1.0" -source = "git+https://github.com/Tensamin/Epsilon.git#05a7b22b2e05a9b023b0d976d65dddf06edccd7c" +source = "git+https://github.com/Tensamin/Epsilon.git#809a32581843e663d35d4b3222f2cc59371d2786" dependencies = [ "epsilon-core", "quinn", @@ -2347,9 +2348,9 @@ dependencies = [ [[package]] name = "quinn-proto" -version = "0.11.13" +version = "0.11.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31" +checksum = "434b42fec591c96ef50e21e886936e66d3cc3f737104fdb9b737c40ffb94c098" dependencies = [ "aws-lc-rs", "bytes", @@ -4374,18 +4375,18 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.8.40" +version = "0.8.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a789c6e490b576db9f7e6b6d661bcc9799f7c0ac8352f56ea20193b2681532e5" +checksum = "f2578b716f8a7a858b7f02d5bd870c14bf4ddbbcf3a4c05414ba6503640505e3" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.40" +version = "0.8.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f65c489a7071a749c849713807783f70672b28094011623e200cb86dcb835953" +checksum = "7e6cc098ea4d3bd6246687de65af3f920c430e236bee1e3bf2e441463f08a02f" dependencies = [ "proc-macro2", "quote", diff --git a/src/server/omikron_connection.rs b/src/server/omikron_connection.rs index 5b4ddc3..ec86bdf 100644 --- a/src/server/omikron_connection.rs +++ b/src/server/omikron_connection.rs @@ -171,8 +171,9 @@ impl OmikronConnection { // ------------------------------------------------------------------------- async fn process_message(self: Arc, cv: CommunicationValue) -> OmikronResult<()> { - // Log incoming - log_cv_in!(PrintType::Omikron, &cv); + if !cv.is_type(CommunicationType::pong) && !cv.is_type(CommunicationType::ping) { + log_cv_in!(PrintType::Omikron, &cv); + } let msg_id = cv.get_id(); @@ -1055,7 +1056,9 @@ impl OmikronConnection { // ------------------------------------------------------------------------- async fn send(self: Arc, cv: &CommunicationValue) -> OmikronResult<()> { - log_cv_out!(PrintType::Omikron, cv); + if !cv.is_type(CommunicationType::pong) && !cv.is_type(CommunicationType::ping) { + log_cv_out!(PrintType::Omikron, cv); + } let guard = self.sender.lock().await; let sender = guard.as_ref().ok_or(OmikronError::NotConnected)?;