Change log level to notice and add more information when application is not found for a module.
Motivation and Context
In existing setups, there might be ports that were set to admin down. Those ports may not have correct speed configuration which would cause error logs when applying media settings:
For media settings, we just print NOTICE log when application is not found so that we don't have to force user to correct port configuration when port is admin down
For CMIS state machine, we print NOTICE log here and there is another place which will print ERROR log when application is not found. We will not loss debuggablity.
if state == CMIS_STATE_INSERTED:
self.port_dict[lport]['appl'] = get_cmis_application_desired(api, host_lane_count, host_speed)
if self.port_dict[lport]['appl'] is None:
self.log_error("{}: no suitable app for the port appl {} host_lane_count {} "
"host_speed {}".format(lport, appl, host_lane_count, host_speed))
So, I think it is safe to change the log level to NOTICE
Backport https://github.com/sonic-net/sonic-platform-daemons/pull/503
Description
Change log level to notice and add more information when application is not found for a module.
Motivation and Context
In existing setups, there might be ports that were set to admin down. Those ports may not have correct speed configuration which would cause error logs when applying media settings:
So, here is the thing:
So, I think it is safe to change the log level to NOTICE
How Has This Been Tested?
Manual test
Additional Information (Optional)