You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A recent PR #582 changed a call in sonic-xcvrd/xcvrd/xcvrd_utilities/port_event_helper.py from log_warning() to log_debug(), which does not exist for SffLoggerForPortUpdateEvent, resulting in the following error:
ERR pmon#xcvrd[317]: Exception occured at SffManagerTask thread due to AttributeError("'SffLoggerForPortUpdateEvent' object has no attribute 'log_debug'")
ERR pmon#xcvrd[317]: Traceback (most recent call last):
ERR pmon#xcvrd[317]: File "/usr/local/lib/python3.11/dist-packages/xcvrd/sff_mgr.py", line 231, in run
ERR pmon#xcvrd[317]: self.task_worker()
ERR pmon#xcvrd[317]: File "/usr/local/lib/python3.11/dist-packages/xcvrd/sff_mgr.py", line 323, in task_worker
ERR pmon#xcvrd[317]: if not port_change_observer.handle_port_update_event():
ERR pmon#xcvrd[317]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERR pmon#xcvrd[317]: File "/usr/local/lib/python3.11/dist-packages/xcvrd/xcvrd_utilities/port_event_helper.py", line 147, in handle_port_update_event
ERR pmon#xcvrd[317]: self.logger.log_debug("$$$ {} handle_port_update_event() : op={} DB:{} Table:{} fvp {}".format(
ERR pmon#xcvrd[317]: ^^^^^^^^^^^^^^^^^^^^^
ERR pmon#xcvrd[317]: AttributeError: 'SffLoggerForPortUpdateEvent' object has no attribute 'log_debug'
We should add a log_debug level to SffLoggerForPortUpdateEvent to fix this.
The text was updated successfully, but these errors were encountered:
@mihirpat1 I guess you are fixing this in your recent PR
rlhui
changed the title
SffLoggerForPortUpdateEvent class does not have log_debug function
[Master] SffLoggerForPortUpdateEvent class does not have log_debug function
Apr 16, 2025
A recent PR #582 changed a call in
sonic-xcvrd/xcvrd/xcvrd_utilities/port_event_helper.py
fromlog_warning()
tolog_debug()
, which does not exist for SffLoggerForPortUpdateEvent, resulting in the following error:We should add a
log_debug
level toSffLoggerForPortUpdateEvent
to fix this.The text was updated successfully, but these errors were encountered: