From 649e36f91715cc3da5aa16f446f797af4cd278da Mon Sep 17 00:00:00 2001 From: Vaibhav Hemant Dixit Date: Wed, 10 Feb 2021 04:54:14 -0800 Subject: [PATCH] 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. --- orchagent/portsorch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orchagent/portsorch.cpp b/orchagent/portsorch.cpp index 905ffc52e16..c845cafba83 100755 --- a/orchagent/portsorch.cpp +++ b/orchagent/portsorch.cpp @@ -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; }