From b128298ec3007b61868fad75858f32051198838b Mon Sep 17 00:00:00 2001 From: Stephen Sun Date: Thu, 9 Jan 2025 05:59:30 +0000 Subject: [PATCH] Update log severity before and after bulk counter polling to info Signed-off-by: Stephen Sun --- syncd/FlexCounter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/syncd/FlexCounter.cpp b/syncd/FlexCounter.cpp index 9ff7bc2c0..94f6e2ae8 100644 --- a/syncd/FlexCounter.cpp +++ b/syncd/FlexCounter.cpp @@ -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) { @@ -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 values;