From 8b2566e543a17e368708874f73789065ca4c5c5c Mon Sep 17 00:00:00 2001 From: OlivierHecart Date: Thu, 19 Sep 2024 19:16:45 +0200 Subject: [PATCH] Downgrade error traces to warning (#1456) --- zenoh/src/net/runtime/orchestrator.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/zenoh/src/net/runtime/orchestrator.rs b/zenoh/src/net/runtime/orchestrator.rs index 979a84fa03..3dac698ae1 100644 --- a/zenoh/src/net/runtime/orchestrator.rs +++ b/zenoh/src/net/runtime/orchestrator.rs @@ -308,7 +308,7 @@ impl Runtime { Ok(r) => r, Err(_) => { let e = zerror!("Unable to connect to any of {:?}. Timeout!", peers); - tracing::error!("{}", &e); + tracing::warn!("{}", &e); Err(e.into()) } } @@ -348,12 +348,8 @@ impl Runtime { return Ok(()); } } - let e = zerror!( - "{:?} Unable to connect to any of {:?}! ", - self.manager().get_locators(), - peers - ); - tracing::error!("{}", &e); + let e = zerror!("Unable to connect to any of {:?}! ", peers); + tracing::warn!("{}", &e); Err(e.into()) } @@ -380,7 +376,7 @@ impl Runtime { } else { // try to connect in background if let Err(e) = self.spawn_peer_connector(endpoint.clone()).await { - tracing::error!("Error connecting to {}: {}", endpoint, e); + tracing::warn!("Error connecting to {}: {}", endpoint, e); return Err(e); } }