Skip to content

Commit

Permalink
Improve verbosity level and provide more info in the log (#2472)
Browse files Browse the repository at this point in the history
*Improve verbosity level and provide more info in the log (#2472)
Signed-off-by: Vivek Reddy Karri <[email protected]>
  • Loading branch information
vivekrnv authored Oct 5, 2022
1 parent e81ed20 commit df92fb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orchagent/intfsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ void IntfsOrch::increaseRouterIntfsRefCount(const string &alias)
SWSS_LOG_ENTER();

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

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

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

Expand Down Expand Up @@ -1271,7 +1271,7 @@ bool IntfsOrch::removeRouterIntfs(Port &port)

if (m_syncdIntfses[port.m_alias].ref_count > 0)
{
SWSS_LOG_NOTICE("Router interface is still referenced");
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);
return false;
}

Expand Down

0 comments on commit df92fb7

Please sign in to comment.