From 1dbc6bdb7437cb4dd4e4c2bbe0d28aaf76b69fa5 Mon Sep 17 00:00:00 2001 From: gifrerenom <lluis.gifre@cttc.es> Date: Tue, 24 Dec 2024 07:28:58 +0000 Subject: [PATCH] Device - gNMI OpenConfig Driver: - Added debug log messages --- .../service/drivers/gnmi_openconfig/handlers/Interface.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/device/service/drivers/gnmi_openconfig/handlers/Interface.py b/src/device/service/drivers/gnmi_openconfig/handlers/Interface.py index 6b91b1b06..d663e1a84 100644 --- a/src/device/service/drivers/gnmi_openconfig/handlers/Interface.py +++ b/src/device/service/drivers/gnmi_openconfig/handlers/Interface.py @@ -86,9 +86,15 @@ class InterfaceHandler(_Handler): json_data = json_data['openconfig-interfaces:interface'][0] str_data = json.dumps(json_data) + LOGGER.warning('Releasing...') while not objects_to_free.empty(): + LOGGER.warning('Getting...') obj = objects_to_free.get() + LOGGER.warning('Releasing: {:s} => {:s}'.format( + str(obj.path()), str(obj.print_mem('json')) + )) obj.free() + LOGGER.warning('Release done') return str_path, str_data def parse( -- GitLab