Skip to content

Commit

Permalink
Log offers on first occurrence in routing manager (#728)
Browse files Browse the repository at this point in the history
For debugging purposes, the routing manager has been updated to log
the first time a new service is detected to be offered.
  • Loading branch information
falk-haleytek authored Nov 28, 2024
1 parent bc12493 commit 28223e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions implementation/routing/src/routing_manager_stub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1128,6 +1128,13 @@ routing_manager_stub::on_net_state_change(

void routing_manager_stub::on_offer_service(client_t _client,
service_t _service, instance_t _instance, major_version_t _major, minor_version_t _minor) {

VSOMEIP_DEBUG << "routing_manager_stub::" << __func__ << ": ON_OFFER_SERVICE("
<< std::hex << std::setw(4) << std::setfill('0') << _client <<"): ["
<< std::hex << std::setw(4) << std::setfill('0') << _service << "."
<< std::hex << std::setw(4) << std::setfill('0') << _instance
<< ":" << std::dec << int(_major) << "." << std::dec << _minor << "]";

if (_client == host_->get_client()) {
create_local_receiver();
}
Expand Down

0 comments on commit 28223e2

Please sign in to comment.