Add diagnostic message when updating DNS

In debugging, it would have been useful to see the old & new values
sometimes
This commit is contained in:
Justin Santa Barbara 2017-01-08 09:39:55 -05:00
parent 64924d81e7
commit 43eb686f7c
1 changed files with 2 additions and 0 deletions

View File

@ -257,6 +257,8 @@ func (c *DNSController) runOnce() error {
ttl := DefaultTTL
glog.Infof("Using default TTL of %v", ttl)
glog.V(4).Infof("updating records for %s: %v -> %v", k, newValues, oldValues)
err := op.updateRecords(k, newValues, int64(ttl.Seconds()))
if err != nil {
glog.Infof("error updating records for %s: %v", k, err)