From ad38c0d55b62489fe659cb99449db9cc35db529b Mon Sep 17 00:00:00 2001 From: Nicholas Harteau Date: Fri, 28 Feb 2020 13:48:29 -0500 Subject: [PATCH] Log old and new IP when updating. --- pkg/sync/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sync/sync.go b/pkg/sync/sync.go index c145f24..aa589b8 100644 --- a/pkg/sync/sync.go +++ b/pkg/sync/sync.go @@ -212,7 +212,7 @@ func (s *Syncer) syncSingle(d *domainObj) error { if d.remote != nil { deletions = []backend.DNSRecord{d.remote} } - log.Printf("Updating record %v", d.managed.Name()) + log.Printf("Updating record %v: old: %v, new: %v", d.managed.Name(), d.remote.Data()[0], d.managed.Data()[0]) err := d.backend.UpdateRecords(ctx, additions, deletions) if err != nil { return err