add more debugging so we know successful update

This commit is contained in:
brent s. 2020-05-10 06:54:55 -04:00
parent b1456ae16a
commit f8bfd846b7
Signed by: bts
GPG Key ID: 8C004C2F93481F6B
1 changed files with 2 additions and 0 deletions

View File

@ -231,6 +231,8 @@ class TunnelBroker(object):
if status.lower() not in ('good', 'nochg'):
logger.error('Returned following failure message: {0}'.format(req.content.decode('utf-8')))
raise RuntimeError('Client IP update returned failure')
else:
logger.debug('Returned success message: {0}'.format(req.content.decode('utf-8')))
if self.ipr and oneshot:
self.ipr.close()
self.ipr = None