Skip to content

Commit df92fb7

Browse files
authored
Improve verbosity level and provide more info in the log (#2472)
*Improve verbosity level and provide more info in the log (#2472) Signed-off-by: Vivek Reddy Karri <[email protected]>
1 parent e81ed20 commit df92fb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

orchagent/intfsorch.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ void IntfsOrch::increaseRouterIntfsRefCount(const string &alias)
183183
SWSS_LOG_ENTER();
184184

185185
m_syncdIntfses[alias].ref_count++;
186-
SWSS_LOG_DEBUG("Router interface %s ref count is increased to %d",
186+
SWSS_LOG_INFO("Router interface %s ref count is increased to %d",
187187
alias.c_str(), m_syncdIntfses[alias].ref_count);
188188
}
189189

@@ -192,7 +192,7 @@ void IntfsOrch::decreaseRouterIntfsRefCount(const string &alias)
192192
SWSS_LOG_ENTER();
193193

194194
m_syncdIntfses[alias].ref_count--;
195-
SWSS_LOG_DEBUG("Router interface %s ref count is decreased to %d",
195+
SWSS_LOG_INFO("Router interface %s ref count is decreased to %d",
196196
alias.c_str(), m_syncdIntfses[alias].ref_count);
197197
}
198198

@@ -1271,7 +1271,7 @@ bool IntfsOrch::removeRouterIntfs(Port &port)
12711271

12721272
if (m_syncdIntfses[port.m_alias].ref_count > 0)
12731273
{
1274-
SWSS_LOG_NOTICE("Router interface is still referenced");
1274+
SWSS_LOG_NOTICE("Router interface %s is still referenced with ref count %d", port.m_alias.c_str(), m_syncdIntfses[port.m_alias].ref_count);
12751275
return false;
12761276
}
12771277

0 commit comments

Comments
 (0)