sonic-platform-daemons
sonic-platform-daemons copied to clipboard
Error log "Error in obtaining media setting for EthernetX" not representing an error
Please take a look at the following error log: https://github.com/sonic-net/sonic-platform-daemons/blob/3b969c3142210d0439d11aa480fb29afb1ac546a/sonic-xcvrd/xcvrd/xcvrd.py#L777C1-L777C105
On Nvidia platforms, we expect to see this log printed for every non-CMIS module as part of the code's regular operation, even though it doesn't represent an actual error. This is because our media_settings.json file intentionally contains data for CMIS modules only. That's why for CMIS modules we expect the data from the json to be published to APP_DB, and for the others we expect encountering this particular message.
Is there a possibility to modify this log from 'log_error()' to 'log_notice()'?