From c8ded1b95de18c96b7a721db611c5502b1aeefe7 Mon Sep 17 00:00:00 2001 From: Olivier Le Thanh Duong Date: Fri, 20 Sep 2024 12:10:46 +0200 Subject: [PATCH] Debug Error Unknown exception while deleting address Add more debug info to help investigate the error Jira: ALEPH-115 This convert the logging.error to a logging.exception Which mean the traceback will be included in Sentry as well as more debug information --- src/aleph/vm/network/interfaces.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aleph/vm/network/interfaces.py b/src/aleph/vm/network/interfaces.py index b90c84b4..f401b507 100644 --- a/src/aleph/vm/network/interfaces.py +++ b/src/aleph/vm/network/interfaces.py @@ -70,9 +70,9 @@ def delete_ip_address(ipr: IPRoute, device_name: str, ip: IPv4Interface | IPv6In try: ipr.addr("del", index=interface_index[0], address=str(ip.ip), mask=ip.network.prefixlen) except NetlinkError as e: - logger.error(f"Unknown exception while deleting address {ip} to interface {device_name}: {e}") + logger.exception(f"Unknown exception while deleting address {ip} to interface {device_name}: {e}") except OSError as e: - logger.error(f"Unknown exception while deleting address {ip} to interface {device_name}: {e}") + logger.exception(f"Unknown exception while deleting address {ip} to interface {device_name}: {e}") def set_link_up(ipr: IPRoute, device_name: str):