Skip to content

Commit

Permalink
Avoid warning when failing to connect to an already connected peer (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart authored Aug 12, 2024
1 parent 764be60 commit 5b628ac
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions zenoh/src/net/runtime/orchestrator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -964,11 +964,18 @@ impl Runtime {
}
}

tracing::warn!(
"Unable to connect to any locator of scouted peer {}: {:?}",
zid,
locators
);
if self.manager().get_transport_unicast(zid).await.is_none() {
tracing::warn!(
"Unable to connect to any locator of scouted peer {}: {:?}",
zid,
locators
);
} else {
tracing::trace!(
"Unable to connect to any locator of scouted peer {}: Already connected!",
zid
);
}
false
}

Expand Down

0 comments on commit 5b628ac

Please sign in to comment.