Skip to content

Commit

Permalink
Delete backend debug traces in release mode (#255)
Browse files Browse the repository at this point in the history
Signed-off-by: Carlosespicur <[email protected]>
  • Loading branch information
Carlosespicur authored Nov 20, 2024
1 parent 74c6c1f commit f0675c8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/cpp/subscriber/StatisticsParticipantListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,22 +164,22 @@ void StatisticsParticipantListener::on_participant_discovery(
{
case ParticipantDiscoveryStatus::DISCOVERED_PARTICIPANT:
{
std::cout << "DomainParticipant discovered: " << info.guid << std::endl;
EPROSIMA_LOG_INFO(StatisticsParticipantListener, "DomainParticipant discovered: " << info.guid);
discovery_info.discovery_status = details::StatisticsBackendData::DiscoveryStatus::DISCOVERY;
break;
}
case ParticipantDiscoveryStatus::CHANGED_QOS_PARTICIPANT:
{
// TODO [ILG] : Process these messages and save the updated QoS
std::cout << "DomainParticipant udated: " << info.guid << std::endl;
EPROSIMA_LOG_INFO(StatisticsParticipantListener, "DomainParticipant updated: " << info.guid);
discovery_info.discovery_status = details::StatisticsBackendData::DiscoveryStatus::UPDATE;
break;
}
case ParticipantDiscoveryStatus::REMOVED_PARTICIPANT:
case ParticipantDiscoveryStatus::DROPPED_PARTICIPANT:
case ParticipantDiscoveryStatus::IGNORED_PARTICIPANT:
{
std::cout << "DomainParticipant removed: " << info.guid << std::endl;
EPROSIMA_LOG_INFO(StatisticsParticipantListener, "DomainParticipant removed: " << info.guid);
discovery_info.discovery_status = details::StatisticsBackendData::DiscoveryStatus::UNDISCOVERY;
break;
}
Expand Down Expand Up @@ -302,21 +302,21 @@ void StatisticsParticipantListener::on_data_reader_discovery(
{
case ReaderDiscoveryStatus::DISCOVERED_READER:
{
std::cout << "DataReader discovered: " << info.guid << std::endl;
EPROSIMA_LOG_INFO(StatisticsParticipantListener, "DataReader discovered: " << info.guid);
discovery_info.discovery_status = details::StatisticsBackendData::DiscoveryStatus::DISCOVERY;
break;
}
case ReaderDiscoveryStatus::CHANGED_QOS_READER:
{
// TODO [ILG] : Process these messages and save the updated QoS
std::cout << "DataReader updated: " << info.guid << std::endl;
EPROSIMA_LOG_INFO(StatisticsParticipantListener, "DataReader updated: " << info.guid);
discovery_info.discovery_status = details::StatisticsBackendData::DiscoveryStatus::UPDATE;
break;
}
case ReaderDiscoveryStatus::REMOVED_READER:
case ReaderDiscoveryStatus::IGNORED_READER:
{
std::cout << "DataReader removed: " << info.guid << std::endl;
EPROSIMA_LOG_INFO(StatisticsParticipantListener, "DataReader removed: " << info.guid);
discovery_info.discovery_status = details::StatisticsBackendData::DiscoveryStatus::UNDISCOVERY;
break;
}
Expand Down Expand Up @@ -385,21 +385,21 @@ void StatisticsParticipantListener::on_data_writer_discovery(
{
case WriterDiscoveryStatus::DISCOVERED_WRITER:
{
std::cout << "DataWriter discovered: " << info.guid << std::endl;
EPROSIMA_LOG_INFO(StatisticsParticipantListener, "DataWriter discovered: " << info.guid);
discovery_info.discovery_status = details::StatisticsBackendData::DiscoveryStatus::DISCOVERY;
break;
}
case WriterDiscoveryStatus::CHANGED_QOS_WRITER:
{
// TODO [ILG] : Process these messages and save the updated QoS
std::cout << "DataWriter updated: " << info.guid << std::endl;
EPROSIMA_LOG_INFO(StatisticsParticipantListener, "DataWriter updated: " << info.guid);
discovery_info.discovery_status = details::StatisticsBackendData::DiscoveryStatus::UPDATE;
break;
}
case WriterDiscoveryStatus::REMOVED_WRITER:
case WriterDiscoveryStatus::IGNORED_WRITER:
{
std::cout << "DataWriter removed: " << info.guid << std::endl;
EPROSIMA_LOG_INFO(StatisticsParticipantListener, "DataWriter removed: " << info.guid);
discovery_info.discovery_status = details::StatisticsBackendData::DiscoveryStatus::UNDISCOVERY;
break;
}
Expand Down

0 comments on commit f0675c8

Please sign in to comment.