Skip to content

Commit

Permalink
Improve LOG_INFO messages for CommonWriter and CommonReader (#68)
Browse files Browse the repository at this point in the history
* Update LOG_INFO CommonWriter & CommonReader

Signed-off-by: Irene Bandera <[email protected]>

* Uncrustify

Signed-off-by: Irene Bandera <[email protected]>

---------

Signed-off-by: Irene Bandera <[email protected]>
  • Loading branch information
irenebm authored Oct 24, 2023
1 parent 46432fc commit 19d4dc1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions ddspipe_participants/src/cpp/reader/rtps/CommonReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,12 +447,14 @@ void CommonReader::onReaderMatched(
if (info.status == fastrtps::rtps::MatchingStatus::MATCHED_MATCHING)
{
logInfo(DDSPIPE_RTPS_COMMONREADER_LISTENER,
"Reader " << *this << " matched with a new Writer with guid " << info.remoteEndpointGuid);
"Reader " << *this << " in topic " << topic_.serialize() << " matched with a new Writer with guid " <<
info.remoteEndpointGuid);
}
else
{
logInfo(DDSPIPE_RTPS_COMMONREADER_LISTENER,
"Reader " << *this << " unmatched with Writer " << info.remoteEndpointGuid);
"Reader " << *this << " in topic " << topic_.serialize() << " unmatched with Writer " <<
info.remoteEndpointGuid);
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions ddspipe_participants/src/cpp/writer/rtps/CommonWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,14 @@ void CommonWriter::onWriterMatched(
if (info.status == fastrtps::rtps::MatchingStatus::MATCHED_MATCHING)
{
logInfo(DDSPIPE_RTPS_COMMONWRITER_LISTENER,
"Writer " << *this << " matched with a new Reader with guid " << info.remoteEndpointGuid);
"Writer " << *this << " in topic " << topic_.serialize() << " matched with a new Reader with guid " <<
info.remoteEndpointGuid);
}
else
{
logInfo(DDSPIPE_RTPS_COMMONWRITER_LISTENER,
"Writer " << *this << " unmatched with Reader " << info.remoteEndpointGuid);
"Writer " << *this << " in topic " << topic_.serialize() << " unmatched with Reader " <<
info.remoteEndpointGuid);
}
}
}
Expand Down

0 comments on commit 19d4dc1

Please sign in to comment.