Skip to content

Commit

Permalink
Update rmw_zenoh_cpp/src/detail/graph_cache.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Lalancette <[email protected]>
Signed-off-by: Yadu <[email protected]>
  • Loading branch information
Yadunund and clalancette authored Jan 2, 2024
1 parent 97ea568 commit e9bc3f5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions rmw_zenoh_cpp/src/detail/graph_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,26 +207,24 @@ void GraphCache::parse_put(const std::string & keyexpr)
NodeMap::iterator insertion_it =
ns_it->second.insert(std::make_pair(entity.node_name(), make_graph_node(entity)));
if (insertion_it != ns_it->second.end()) {
RCUTILS_LOG_WARN_NAMED(
RCUTILS_LOG_INFO_NAMED(
"rmw_zenoh_cpp",
"Added a new node /%s with id %s to an existing namespace %s in the graph.",
entity.node_name().c_str(),
entity.id().c_str(),
entity.node_namespace().c_str());
return;
} else {
RCUTILS_LOG_ERROR_NAMED(
"rmw_zenoh_cpp",
"Unable to add a new node /%s with id %s an existing namespace %s in the graph. Report this bug.",
entity.node_name().c_str(),
entity.id().c_str(),
entity.node_namespace().c_str());
return;
}
} else {
// The entity represents a node that already exists in the graph.
// Update topic info if required below.
return;
}
// Otherwise, the entity represents a node that already exists in the graph.
// Update topic info if required below.

// Handles additions to an existing node in the graph.
if (entity.type() == EntityType::Node) {
Expand Down

0 comments on commit e9bc3f5

Please sign in to comment.