Skip to content

Commit

Permalink
[team sync/mgr] Add debug message before cleaning up LAGs (#1192)
Browse files Browse the repository at this point in the history
These functions are called only once in the time of service stopping,
add events will help debug. And these messages won't be chatty.

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
  • Loading branch information
yxieca committed Feb 8, 2020
1 parent 412c5eb commit 88f7a2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cfgmgr/teammgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ void TeamMgr::cleanTeamProcesses(int signo)
{
pid_t pid = 0;

SWSS_LOG_ENTER();
SWSS_LOG_NOTICE("Cleaning up LAGs during shutdown...");
for (const auto& it: m_lagList)
{
pid = m_lagPIDList[it];
Expand Down
3 changes: 3 additions & 0 deletions teamsyncd/teamsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ void TeamSync::removeLag(const string &lagName)

void TeamSync::cleanTeamSync()
{
SWSS_LOG_ENTER();
SWSS_LOG_NOTICE("Cleaning up LAG teamd resources ...");

for (const auto& it: m_teamSelectables)
{
/* Cleanup LAG */
Expand Down

0 comments on commit 88f7a2a

Please sign in to comment.