Skip to content

Commit 0b2e59a

Browse files
authored
[drop counters] Clarify log messages for initial counter setup (sonic-net#1445)
Signed-off-by: Danny Allen <daall@microsoft.com>
1 parent 003cf24 commit 0b2e59a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

orchagent/debugcounterorch.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ task_process_status DebugCounterOrch::addDropReason(const string& counter_name,
322322
// are received before the create counter update, we keep track of reasons
323323
// we've seen in the free_drop_reasons table.
324324
addFreeDropReason(counter_name, drop_reason);
325-
reconcileFreeDropCounters(counter_name);
325+
SWSS_LOG_NOTICE("Added drop reason %s to drop counter %s", drop_reason.c_str(), counter_name.c_str());
326326

327-
SWSS_LOG_NOTICE("Succesfully created drop counter %s", counter_name.c_str());
327+
reconcileFreeDropCounters(counter_name);
328328
return task_process_status::task_success;
329329
}
330330

@@ -451,7 +451,7 @@ void DebugCounterOrch::reconcileFreeDropCounters(const string& counter_name)
451451
createDropCounter(counter_name, counter_it->second, reasons_it->second);
452452
free_drop_counters.erase(counter_it);
453453
free_drop_reasons.erase(reasons_it);
454-
SWSS_LOG_NOTICE("Succesfully created new drop counter %s", counter_name.c_str());
454+
SWSS_LOG_NOTICE("Succesfully matched drop reasons to counter %s", counter_name.c_str());
455455
}
456456
}
457457

0 commit comments

Comments
 (0)