From f04641efe311365bbfdf8a831ff13d7224db22e3 Mon Sep 17 00:00:00 2001 From: Stephen Sun Date: Sun, 13 Oct 2024 09:30:03 +0000 Subject: [PATCH] More debug information Signed-off-by: Stephen Sun --- syncd/FlexCounter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/syncd/FlexCounter.cpp b/syncd/FlexCounter.cpp index 19626f74f..6dfd1a13c 100644 --- a/syncd/FlexCounter.cpp +++ b/syncd/FlexCounter.cpp @@ -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 idStrings; idStrings.reserve(m_objectIdsMap.size()); @@ -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 @@ -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) { @@ -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) { @@ -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(