From 92fdee435ada28f9c7ff33b1c689b0b4aa5bb050 Mon Sep 17 00:00:00 2001 From: brent s Date: Fri, 15 May 2020 02:15:45 -0400 Subject: [PATCH] logging? wtf? --- utils/he_ipv6/tunnelbroker.py | 2 ++ utils/manage_heipv6.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/he_ipv6/tunnelbroker.py b/utils/he_ipv6/tunnelbroker.py index 8f9b899..c93046f 100644 --- a/utils/he_ipv6/tunnelbroker.py +++ b/utils/he_ipv6/tunnelbroker.py @@ -209,6 +209,8 @@ class TunnelBroker(object): def update(self): if not self.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) logger.debug('Set auth handler.') logger.debug('Requesting IP update at provider.') diff --git a/utils/manage_heipv6.py b/utils/manage_heipv6.py index 574e4a5..ad1e2df 100755 --- a/utils/manage_heipv6.py +++ b/utils/manage_heipv6.py @@ -1,10 +1,11 @@ #!/usr/bin/env python3 import he_ipv6 +import he_ipv6.logger import logging -logger = logging.getLogger() +logger = logging.getLogger('HE Tunnelbroker Manager') def main():