Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade some connectivity error traces to warning #1456

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading