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 Dec 13, 2024
1 parent cde371c commit b5d2344
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 @@ -620,7 +620,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 @@ -641,7 +641,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 @@ -752,7 +752,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 @@ -772,7 +772,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 @@ -801,7 +801,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 b5d2344

Please sign in to comment.