Add logging to domain_registrar_push

This commit is contained in:
Alexandre Aubin 2021-08-28 21:55:44 +02:00
parent 5a93e0640d
commit 4089c34685

View file

@ -464,7 +464,8 @@ def domain_registrar_set(domain, registrar, args):
_set_registrar_settings(dns_zone, domain_registrar) _set_registrar_settings(dns_zone, domain_registrar)
def domain_registrar_push(domain): @is_unit_operation()
def domain_registrar_push(operation_logger, domain):
""" """
Send DNS records to the previously-configured registrar of the domain. Send DNS records to the previously-configured registrar of the domain.
""" """
@ -508,6 +509,8 @@ def domain_registrar_push(domain):
for record in flatten_dns_conf: for record in flatten_dns_conf:
types.add(record["type"]) types.add(record["type"])
operation_logger.start()
# Fetch all types present in the generated records # Fetch all types present in the generated records
distant_records = {} distant_records = {}