Skip to content

Commit

Permalink
More debug information
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Sun <[email protected]>
  • Loading branch information
stephenxs committed Nov 25, 2024
1 parent d15f4c5 commit f04641e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions syncd/FlexCounter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ class CounterContext : public BaseCounterContext
return;
}

SWSS_LOG_INFO("Before running plugin %s", m_name.c_str());
SWSS_LOG_INFO("Before running plugin %s %s", m_instanceId.c_str(), m_name.c_str());

std::vector<std::string> idStrings;
idStrings.reserve(m_objectIdsMap.size());
Expand All @@ -623,7 +623,7 @@ class CounterContext : public BaseCounterContext
m_plugins.end(),
[&] (auto &sha) { runRedisScript(counters_db, sha, idStrings, argv); });

SWSS_LOG_INFO("After running plugin %s", m_name.c_str());
SWSS_LOG_INFO("After running plugin %s %s", m_instanceId.c_str(), m_name.c_str());
}

bool hasObject() const override
Expand Down Expand Up @@ -734,7 +734,7 @@ class CounterContext : public BaseCounterContext
}
uint32_t current = 0;

SWSS_LOG_INFO("Before getting bulk %s size %u bulk_size %u current %u", m_name.c_str(), size, bulk_size, current);
SWSS_LOG_INFO("Before getting bulk %s %s size %u bulk_size %u current %u", m_instanceId.c_str(), m_name.c_str(), size, bulk_size, current);

while (current < size)
{
Expand All @@ -754,7 +754,7 @@ class CounterContext : public BaseCounterContext
}
current += bulk_size;

SWSS_LOG_INFO("After getting bulk %s index %u(advanced to %u) bulk_size %u", m_name.c_str(), current - bulk_size, current, bulk_size);
SWSS_LOG_INFO("After getting bulk %s %s index %u(advanced to %u) bulk_size %u", m_instanceId.c_str(), m_name.c_str(), current - bulk_size, current, bulk_size);

if (size - current < bulk_size)
{
Expand Down Expand Up @@ -783,7 +783,7 @@ class CounterContext : public BaseCounterContext
values.clear();
}

SWSS_LOG_INFO("After pushing db %s", m_name.c_str());
SWSS_LOG_INFO("After pushing db %s %s", m_instanceId.c_str(), m_name.c_str());
}

auto getBulkStatsContext(
Expand Down

0 comments on commit f04641e

Please sign in to comment.