diff --git a/odi6/odi6.py b/odi6/odi6.py index d094f18..6d6be5f 100755 --- a/odi6/odi6.py +++ b/odi6/odi6.py @@ -157,10 +157,9 @@ same target, doing nothing.""" if self.config['ip_method'] == 'value': if self.config['ip']: return self.config['ip'], self.config['ipv6'] - else: - self._log.error( - 'Selected "value" method but no IP (v4) address indicated.' - ) + self._log.error( + 'Selected "value" method but no IP (v4) address indicated.' + ) elif self.config['ip_method'] == 'interface': try: iface = netifaces.ifaddresses(self.config['network_interface']) @@ -190,6 +189,10 @@ same target, doing nothing.""" ipv4 = match.group(0).decode() try: result = s.get(self.config['web_service_url_ipv6']) + self._log.debug( + "IPv6 web service result: %s", + result.content + ) match = re.match( br'[0-9a-f]{0,4}:?:[0-9a-f]{0,4}:?:[0-9a-f]{0,4}:?:[0-9a-f]{0,4}:?:[0-9a-f]{0,4}:?:[0-9a-f]{0,4}', result.content)