Skip to content

Commit

Permalink
Avoid logError when calling filPublisherAttributes call from statisti…
Browse files Browse the repository at this point in the history
…cs XML (eProsima#2973)

* Refs #15014: Fix for not logError in filPublisherAttributes call

Signed-off-by: Mikel Rico <mikelrico@eprosima.com>

* Refs #15014: Same

Signed-off-by: Mikel Rico <mikelrico@eprosima.com>

Signed-off-by: Mikel Rico <mikelrico@eprosima.com>
  • Loading branch information
MRicoIE2CS authored Sep 23, 2022
1 parent 78473a0 commit 7bc586f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cpp/statistics/fastdds/domain/DomainParticipantImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ ReturnCode_t DomainParticipantImpl::enable_statistics_datawriter_with_profile(
{
DataWriterQos datawriter_qos;
PublisherAttributes attr;
if (XMLP_ret::XML_OK == XMLProfileManager::fillPublisherAttributes(profile_name, attr))
if (XMLP_ret::XML_OK == XMLProfileManager::fillPublisherAttributes(profile_name, attr, false))
{
efd::utils::set_qos_from_attributes(datawriter_qos, attr);

Expand Down Expand Up @@ -319,12 +319,12 @@ void DomainParticipantImpl::enable_statistics_builtin_datawriters(
{
DataWriterQos datawriter_qos;
PublisherAttributes attr;
if (XMLP_ret::XML_OK == XMLProfileManager::fillPublisherAttributes(topic, attr))
if (XMLP_ret::XML_OK == XMLProfileManager::fillPublisherAttributes(topic, attr, false))
{
efd::utils::set_qos_from_attributes(datawriter_qos, attr);
}
else if (XMLP_ret::XML_OK ==
XMLProfileManager::fillPublisherAttributes(DEFAULT_STATISTICS_DATAWRITER_PROFILE, attr))
XMLProfileManager::fillPublisherAttributes(DEFAULT_STATISTICS_DATAWRITER_PROFILE, attr, false))
{
efd::utils::set_qos_from_attributes(datawriter_qos, attr);
}
Expand Down

0 comments on commit 7bc586f

Please sign in to comment.