Log format
This commit is contained in:
parent
b56750c27e
commit
7b4a7c6f6d
@ -126,7 +126,7 @@ def checkRecords(api: dict[str, dict[str, list[str]]], current_ip: str, log: Cal
|
|||||||
filter(lambda x: current_ip in x['rrset_values'], response.json()))))
|
filter(lambda x: current_ip in x['rrset_values'], response.json()))))
|
||||||
|
|
||||||
if records_to_renew[key][domain] != []:
|
if records_to_renew[key][domain] != []:
|
||||||
log(f"[INFO][{' '.join(records_to_renew)}]Record that need to be renewed")
|
log(f"[INFO][{','.join(records_to_renew)}] Record need to be renewed")
|
||||||
|
|
||||||
else:
|
else:
|
||||||
log(f"[ERROR][{domain}][{response.status_code}] {response.json()}")
|
log(f"[ERROR][{domain}][{response.status_code}] {response.json()}")
|
||||||
|
Loading…
Reference in New Issue
Block a user