Skip to content

Commit 88f7a2a

Browse files
authored
[team sync/mgr] Add debug message before cleaning up LAGs (sonic-net#1192)
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>
1 parent 412c5eb commit 88f7a2a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cfgmgr/teammgr.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ void TeamMgr::cleanTeamProcesses(int signo)
163163
{
164164
pid_t pid = 0;
165165

166+
SWSS_LOG_ENTER();
167+
SWSS_LOG_NOTICE("Cleaning up LAGs during shutdown...");
166168
for (const auto& it: m_lagList)
167169
{
168170
pid = m_lagPIDList[it];

teamsyncd/teamsync.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ void TeamSync::removeLag(const string &lagName)
212212

213213
void TeamSync::cleanTeamSync()
214214
{
215+
SWSS_LOG_ENTER();
216+
SWSS_LOG_NOTICE("Cleaning up LAG teamd resources ...");
217+
215218
for (const auto& it: m_teamSelectables)
216219
{
217220
/* Cleanup LAG */

0 commit comments

Comments
 (0)