Skip to content

Commit aaa7bf2

Browse files
authored
Log level change from ERR to INFO for fetch systemports issue (#1632)
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.
1 parent b8193d1 commit aaa7bf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orchagent/portsorch.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4848,7 +4848,7 @@ bool PortsOrch::getSystemPorts()
48484848
status = sai_switch_api->get_switch_attribute(gSwitchId, 1, &attr);
48494849
if (status != SAI_STATUS_SUCCESS)
48504850
{
4851-
SWSS_LOG_ERROR("Failed to get number of system ports, rv:%d", status);
4851+
SWSS_LOG_INFO("Failed to get number of system ports, rv:%d", status);
48524852
return false;
48534853
}
48544854

0 commit comments

Comments
 (0)