logging? wtf?

This commit is contained in:
brent s. 2020-05-15 02:15:45 -04:00
parent c45754b1a3
commit 92fdee435a
Signed by: bts
GPG Key ID: 8C004C2F93481F6B
2 changed files with 4 additions and 1 deletions

View File

@ -209,6 +209,8 @@ class TunnelBroker(object):
def update(self): def update(self):
if not self.my_ip: if not self.my_ip:
self._get_my_ip() self._get_my_ip()
if not self.needs_update:
return(None)
auth_handler = requests.auth.HTTPBasicAuth(self.tun.creds.user, self.tun.update_key) auth_handler = requests.auth.HTTPBasicAuth(self.tun.creds.user, self.tun.update_key)
logger.debug('Set auth handler.') logger.debug('Set auth handler.')
logger.debug('Requesting IP update at provider.') logger.debug('Requesting IP update at provider.')

View File

@ -1,10 +1,11 @@
#!/usr/bin/env python3 #!/usr/bin/env python3


import he_ipv6 import he_ipv6
import he_ipv6.logger




import logging import logging
logger = logging.getLogger() logger = logging.getLogger('HE Tunnelbroker Manager')




def main(): def main():