Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Log old and new IP when updating. #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down