Skip to content

Commit

Permalink
Reducing the severity of oper fec attribute get failure (#2924)
Browse files Browse the repository at this point in the history
What I did
Reduced the severity of log when get attribute of oper fec failed.

Why I did it
The oper fec is not a mandatory attribute and may not be implemented by vendor SAI, in which case throwing an error is wrong. Reduced the severity of the log message to notice. This will also fix the checker issues in sonic-net/sonic-buildimage#16785
  • Loading branch information
dgsudharsan authored Oct 13, 2023
1 parent cb98893 commit b9313df
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 @@ -7510,7 +7510,7 @@ bool PortsOrch::getPortOperFec(const Port& port, sai_port_fec_mode_t &fec_mode)
sai_status_t ret = sai_port_api->get_port_attribute(port.m_port_id, 1, &attr);
if (ret != SAI_STATUS_SUCCESS)
{
SWSS_LOG_ERROR("Failed to get oper fec for %s", port.m_alias.c_str());
SWSS_LOG_NOTICE("Failed to get oper fec for %s", port.m_alias.c_str());
return false;
}

Expand Down

0 comments on commit b9313df

Please sign in to comment.