Add debug
This commit is contained in:
parent
ceadfc1b19
commit
bc1eec2f45
1 changed files with 9 additions and 3 deletions
12
odi6/odi6.py
12
odi6/odi6.py
|
@ -145,7 +145,7 @@ same target, doing nothing."""
|
|||
f"/domain/zone/{self.config['domain']}/record",
|
||||
**params,
|
||||
)
|
||||
self._log.debug(f"Result: {result}")
|
||||
self._log.debug("Result: %s", result)
|
||||
|
||||
def _determine_ip(self):
|
||||
ipv6 = None
|
||||
|
@ -165,8 +165,14 @@ same target, doing nothing."""
|
|||
return ipv4, ipv6
|
||||
except ValueError as error:
|
||||
self._log.error(
|
||||
f"""'{self.config['network_interface']}' is NOT a
|
||||
valid network interface. {error}"""
|
||||
"'%s' is NOT a valid network interface. %s",
|
||||
self.config['network_interface'],
|
||||
error
|
||||
)
|
||||
except KeyError:
|
||||
self._log.error(
|
||||
"Not enough interfaces?. %s",
|
||||
iface
|
||||
)
|
||||
elif self.config['ip_method'] == 'web':
|
||||
s = requests.Session()
|
||||
|
|
Loading…
Reference in a new issue