From 5b7c17e4500e43da1e45783880d3b332edf22351 Mon Sep 17 00:00:00 2001 From: Giacomo Pasini Date: Wed, 13 Sep 2023 12:13:18 +0200 Subject: [PATCH] Remove failed deserialization error message (#399) Firstly, a failure in deserialization for a network message is not an error especially since we're using a public channel. Secondly, that same channel is shared by different kind of messages so trying to interpret one as the other will surely lead to a unsuccessfull attempt. --- .../data-availability/src/network/adapters/libp2p.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nomos-services/data-availability/src/network/adapters/libp2p.rs b/nomos-services/data-availability/src/network/adapters/libp2p.rs index 3da557c4..b219833f 100644 --- a/nomos-services/data-availability/src/network/adapters/libp2p.rs +++ b/nomos-services/data-availability/src/network/adapters/libp2p.rs @@ -15,7 +15,7 @@ use serde::de::DeserializeOwned; use serde::Serialize; use tokio_stream::wrappers::BroadcastStream; use tokio_stream::StreamExt; -use tracing::error; +use tracing::debug; pub const NOMOS_DA_TOPIC: &str = "NomosDa"; @@ -47,7 +47,7 @@ where match wire::deserialize::(&data) { Ok(msg) => Some(msg), Err(e) => { - error!("Unrecognized Blob message: {e}"); + debug!("Unrecognized message: {e}"); None } }