Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
  • Loading branch information
Mario-DL committed May 17, 2024
1 parent 9055759 commit e5800c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cpp/xmlparser/XMLProfileManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ XMLP_ret XMLProfileManager::loadXMLFile(
const std::string& filename,
bool is_default)
{
std::cout << "XMLProfileManager::loadXMLFile(" << filename << ")" << std::endl;
if (filename.empty())
{
EPROSIMA_LOG_ERROR(XMLPARSER, "Error loading XML file, filename empty");
Expand All @@ -368,6 +369,7 @@ XMLP_ret XMLProfileManager::loadXMLFile(
xmlfile_map_iterator_t it = xml_files_.find(filename);
if (it != xml_files_.end() && XMLP_ret::XML_OK == it->second)
{
std::cout << filename << "already parsed" << std::endl;
EPROSIMA_LOG_INFO(XMLPARSER, "XML file '" << filename << "' already parsed");
return XMLP_ret::XML_OK;
}
Expand Down
3 changes: 3 additions & 0 deletions test/unittest/logging/mock/MockConsumer.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,15 @@ class MockConsumer : public StdoutConsumer
virtual void Consume(
const Log::Entry& entry)
{
std::cout << "Consuming " << entry.message << std::endl;
if (category.empty() || entry.context.category == category)
{
std::unique_lock<std::mutex> guard(mMutex);
mEntriesConsumed.push_back(entry);
std::cout << "Notifying " << std::endl;
cv_.notify_all();
}
std::cout << "StdoutConsumer::Consume " << std::endl;
StdoutConsumer::Consume(entry);
}

Expand Down

0 comments on commit e5800c2

Please sign in to comment.