Skip to content

Commit

Permalink
[drop counters] Clarify log messages for initial counter setup (#1445)
Browse files Browse the repository at this point in the history
Signed-off-by: Danny Allen <daall@microsoft.com>
  • Loading branch information
daall committed Sep 23, 2020
1 parent 003cf24 commit 0b2e59a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orchagent/debugcounterorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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());
}
}

Expand Down

0 comments on commit 0b2e59a

Please sign in to comment.