From 932172c937436a4a89b7fc4ada77543cec5fc6ef Mon Sep 17 00:00:00 2001 From: gatici Date: Wed, 17 Jul 2024 13:38:53 +0300 Subject: [PATCH] Adding log messages for register_handlers method Signed-off-by: gatici --- conf/route_control.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/conf/route_control.py b/conf/route_control.py index 16336a05f..22997c9b0 100755 --- a/conf/route_control.py +++ b/conf/route_control.py @@ -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