Skip to content

Commit

Permalink
[CMIS] Chagne log level from info to error for fail to get fw mgmt fe…
Browse files Browse the repository at this point in the history
…ature

Signed-off-by: xinyu <xinyu0123@gmail.com>
  • Loading branch information
xinyulin committed Aug 13, 2024
1 parent 4d919c8 commit ea7ee0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sonic_platform_base/sonic_xcvr/api/public/cmis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1280,8 +1280,8 @@ def get_module_fw_mgmt_feature(self, verbose = False):

else:
txt += 'Status or reply payload check code error\n'
logger.info(txt)
logger.info('Fail to get fw mgmt feature, cdb status: {:#x}, cdb_chkcode: {:#x}, rpl_chkcode: {:#x}\n'.format(status, self.cdb.cdb_chkcode(rpl), rpl_chkcode))
logger.error(txt)
logger.error('Fail to get fw mgmt feature, cdb status: {:#x}, cdb_chkcode: {:#x}, rpl_chkcode: {:#x}\n'.format(status, self.cdb.cdb_chkcode(rpl), rpl_chkcode))
return {'status': False, 'info': txt, 'feature': None}
elapsedtime = time.time()-starttime
logger.info('Get module FW upgrade features time: %.2f s\n' %elapsedtime)
Expand Down

0 comments on commit ea7ee0d

Please sign in to comment.