Skip to content

Commit

Permalink
Downgrade error traces to warning (#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart authored Sep 19, 2024
1 parent 2557764 commit 8b2566e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions zenoh/src/net/runtime/orchestrator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}
Expand Down Expand Up @@ -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())
}

Expand All @@ -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);
}
}
Expand Down

0 comments on commit 8b2566e

Please sign in to comment.