logging? wtf?
This commit is contained in:
parent
c45754b1a3
commit
92fdee435a
@ -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.')
|
||||||
|
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user