...better logging
This commit is contained in:
parent
1d27ee0556
commit
881a8c9317
@ -153,8 +153,8 @@ class TunnelBroker(object):
|
|||||||
family = socket.AF_INET6)
|
family = socket.AF_INET6)
|
||||||
logger.debug('Added {0} with prefix {1} to {2}.'.format(a.str, a.prefix, assignment.iface))
|
logger.debug('Added {0} with prefix {1} to {2}.'.format(a.str, a.prefix, assignment.iface))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(('Could not add address {0} on link {1}: '
|
logger.error(('Could not add address {0} on {1}: '
|
||||||
'{2}').format(a.str, assignment.iface_idx, e))
|
'{2}').format(a.str, assignment.iface, e))
|
||||||
ipr.close()
|
ipr.close()
|
||||||
raise e
|
raise e
|
||||||
# The SLAAC prefixes.
|
# The SLAAC prefixes.
|
||||||
@ -167,8 +167,8 @@ class TunnelBroker(object):
|
|||||||
family = socket.AF_INET6)
|
family = socket.AF_INET6)
|
||||||
logger.debug('Added {0} with prefix {1} to {2}.'.format(b.str, b.prefixlen, assignment.iface))
|
logger.debug('Added {0} with prefix {1} to {2}.'.format(b.str, b.prefixlen, assignment.iface))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(('Could not add address block {0} on link {1}: '
|
logger.error(('Could not add address block {0} on {1}: '
|
||||||
'{2}').format(b.str, assignment.iface_idx, e))
|
'{2}').format(b.str, assignment.iface, e))
|
||||||
ipr.close()
|
ipr.close()
|
||||||
raise e
|
raise e
|
||||||
ipr.close()
|
ipr.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user