Skip to content
Snippets Groups Projects
Commit 45ead330 authored by armar-user's avatar armar-user
Browse files

Add debug output

parent 1eaa7efe
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ namespace armarx::armem::client::util ...@@ -29,7 +29,7 @@ namespace armarx::armem::client::util
{ {
std::stringstream error; std::stringstream error;
for (const auto& [subscription, callbacks] : this->callbacks) for (const auto& [subscription, subCallbacks] : this->callbacks)
{ {
std::vector<MemoryID> matchingSnapshotIDs; std::vector<MemoryID> matchingSnapshotIDs;
...@@ -53,7 +53,10 @@ namespace armarx::armem::client::util ...@@ -53,7 +53,10 @@ namespace armarx::armem::client::util
if (not matchingSnapshotIDs.empty()) if (not matchingSnapshotIDs.empty())
{ {
for (auto& callback : callbacks) ARMARX_DEBUG << "Calling " << subCallbacks.size() << " callbacks"
<< " subscribing " << subscription
<< " with " << matchingSnapshotIDs.size() << " snapshot IDs ...";
for (auto& callback : subCallbacks)
{ {
callback(subscription, matchingSnapshotIDs); callback(subscription, matchingSnapshotIDs);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment