From 881a8c9317ec1004a416cf545a5353be85dd3cc3 Mon Sep 17 00:00:00 2001 From: brent s Date: Fri, 15 May 2020 03:15:50 -0400 Subject: [PATCH] ...better logging --- utils/he_ipv6/tunnelbroker.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/he_ipv6/tunnelbroker.py b/utils/he_ipv6/tunnelbroker.py index 2677aa6..389f764 100644 --- a/utils/he_ipv6/tunnelbroker.py +++ b/utils/he_ipv6/tunnelbroker.py @@ -153,8 +153,8 @@ class TunnelBroker(object): family = socket.AF_INET6) logger.debug('Added {0} with prefix {1} to {2}.'.format(a.str, a.prefix, assignment.iface)) except Exception as e: - logger.error(('Could not add address {0} on link {1}: ' - '{2}').format(a.str, assignment.iface_idx, e)) + logger.error(('Could not add address {0} on {1}: ' + '{2}').format(a.str, assignment.iface, e)) ipr.close() raise e # The SLAAC prefixes. @@ -167,8 +167,8 @@ class TunnelBroker(object): family = socket.AF_INET6) logger.debug('Added {0} with prefix {1} to {2}.'.format(b.str, b.prefixlen, assignment.iface)) except Exception as e: - logger.error(('Could not add address block {0} on link {1}: ' - '{2}').format(b.str, assignment.iface_idx, e)) + logger.error(('Could not add address block {0} on {1}: ' + '{2}').format(b.str, assignment.iface, e)) ipr.close() raise e ipr.close()