Skip to content

Commit

Permalink
Log level change from ERR to INFO for fetch systemports issue (#1632)
Browse files Browse the repository at this point in the history
SAI attribute SAI_SWITCH_ATTR_NUMBER_OF_SYSTEM_PORTS is not supported on many platforms, and the call to getSystemPorts() throws error.
This error is not harmful at this state, and therefore the log level is changed from ERROR to INFO.
  • Loading branch information
vaibhavhd authored Feb 10, 2021
1 parent b8193d1 commit aaa7bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4848,7 +4848,7 @@ bool PortsOrch::getSystemPorts()
status = sai_switch_api->get_switch_attribute(gSwitchId, 1, &attr);
if (status != SAI_STATUS_SUCCESS)
{
SWSS_LOG_ERROR("Failed to get number of system ports, rv:%d", status);
SWSS_LOG_INFO("Failed to get number of system ports, rv:%d", status);
return false;
}

Expand Down

0 comments on commit aaa7bf2

Please sign in to comment.