From 0b2e59ab6b909e5ea06013da03215f0d1af1e618 Mon Sep 17 00:00:00 2001 From: Danny Allen Date: Wed, 23 Sep 2020 11:36:18 -0700 Subject: [PATCH] [drop counters] Clarify log messages for initial counter setup (#1445) Signed-off-by: Danny Allen --- orchagent/debugcounterorch.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/orchagent/debugcounterorch.cpp b/orchagent/debugcounterorch.cpp index b4f2407ca473..31ec1502762a 100644 --- a/orchagent/debugcounterorch.cpp +++ b/orchagent/debugcounterorch.cpp @@ -322,9 +322,9 @@ task_process_status DebugCounterOrch::addDropReason(const string& counter_name, // are received before the create counter update, we keep track of reasons // we've seen in the free_drop_reasons table. addFreeDropReason(counter_name, drop_reason); - reconcileFreeDropCounters(counter_name); + SWSS_LOG_NOTICE("Added drop reason %s to drop counter %s", drop_reason.c_str(), counter_name.c_str()); - SWSS_LOG_NOTICE("Succesfully created drop counter %s", counter_name.c_str()); + reconcileFreeDropCounters(counter_name); return task_process_status::task_success; } @@ -451,7 +451,7 @@ void DebugCounterOrch::reconcileFreeDropCounters(const string& counter_name) createDropCounter(counter_name, counter_it->second, reasons_it->second); free_drop_counters.erase(counter_it); free_drop_reasons.erase(reasons_it); - SWSS_LOG_NOTICE("Succesfully created new drop counter %s", counter_name.c_str()); + SWSS_LOG_NOTICE("Succesfully matched drop reasons to counter %s", counter_name.c_str()); } }