Skip to content

Commit

Permalink
Adding log messages for register_handlers method
Browse files Browse the repository at this point in the history
Signed-off-by: gatici <[email protected]>
  • Loading branch information
gatici committed Jul 17, 2024
1 parent 45ff8cd commit 932172c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions conf/route_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,15 +608,17 @@ def _get_gate_idx(self, route_entry: RouteEntry, module_name: str) -> int:
return cached_entry.gate_idx
return self._module_gate_count_cache[module_name]

def _netlink_event_listener(self, _, netlink_message: dict) -> None:
def _netlink_event_listener(self, target, netlink_message: dict) -> None:
"""Listens for netlink events and handles them.
Args:
_ : target
target: target
netlink_message (dict): The netlink message.
"""
try:
logger.info("target:", target)
event = netlink_message.get('event')
logger.info("event: %s is received.", event)
except Exception:
logger.exception("Error parsing netlink message")
return
Expand Down

0 comments on commit 932172c

Please sign in to comment.