Skip to content

Commit

Permalink
[orchagent][port] In case of successful port creation set log level t…
Browse files Browse the repository at this point in the history
…o INFO (sonic-net#1500)

* [orchagent][port] In case of successful port creation set log level to NOTICE instead of ERR
  • Loading branch information
smaheshm authored Nov 11, 2020
1 parent 7b76d2e commit fea7ade
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ bool PortsOrch::initPort(const string &alias, const int index, const set<int> &l
/* Determine if the port has already been initialized before */
if (m_portList.find(alias) != m_portList.end() && m_portList[alias].m_port_id == id)
{
SWSS_LOG_INFO("Port has already been initialized before alias:%s", alias.c_str());
SWSS_LOG_DEBUG("Port has already been initialized before alias:%s", alias.c_str());
}
else
{
Expand Down Expand Up @@ -1853,7 +1853,7 @@ bool PortsOrch::initPort(const string &alias, const int index, const set<int> &l

m_portList[alias].m_init = true;

SWSS_LOG_ERROR("Initialized port %s", alias.c_str());
SWSS_LOG_NOTICE("Initialized port %s", alias.c_str());
}
else
{
Expand Down

0 comments on commit fea7ade

Please sign in to comment.