Skip to content

Commit

Permalink
Update log severity before and after bulk counter polling to info
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Sun <[email protected]>
  • Loading branch information
stephenxs committed Jan 9, 2025
1 parent 44a3c65 commit b128298
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion syncd/FlexCounter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,7 @@ class CounterContext : public BaseCounterContext
}
uint32_t current = 0;

SWSS_LOG_DEBUG("Before getting bulk %s %s %s size %u bulk chunk size %u current %u", m_instanceId.c_str(), m_name.c_str(), ctx.name.c_str(), size, bulk_chunk_size, current);
SWSS_LOG_INFO("Before getting bulk %s %s %s size %u bulk chunk size %u current %u", m_instanceId.c_str(), m_name.c_str(), ctx.name.c_str(), size, bulk_chunk_size, current);

while (current < size)
{
Expand Down Expand Up @@ -1039,6 +1039,8 @@ class CounterContext : public BaseCounterContext
}
}

SWSS_LOG_INFO("After getting bulk %s %s %s total %u objects", m_instanceId.c_str(), m_name.c_str(), ctx.name.c_str(), size);

auto time_stamp = std::chrono::steady_clock::now().time_since_epoch().count();

std::vector<swss::FieldValueTuple> values;
Expand Down

0 comments on commit b128298

Please sign in to comment.