From aaa7bf2d1ec04fbdbc835f9139d7a76061beb740 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 905ffc52e1..c845cafba8 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; }