diff options
author | 2019-08-27 13:54:23 +0000 | |
---|---|---|
committer | 2019-08-27 13:54:23 +0000 | |
commit | 87bd9dec856b743d65d71f90accc4296d767b109 (patch) | |
tree | 38e329b92ff518ba63fe28fd2fd43e1be971f0cf | |
parent | 364478eb33d76ef83b3a5159a2f62ad5bcf67b02 (diff) | |
download | coredns-87bd9dec856b743d65d71f90accc4296d767b109.tar.gz coredns-87bd9dec856b743d65d71f90accc4296d767b109.tar.zst coredns-87bd9dec856b743d65d71f90accc4296d767b109.zip |
plugin/file: less notify logging spam (#3212)
Say once that we've sent notifies, instead of for every upstream
primary.
Signed-off-by: Miek Gieben <miek@miek.nl>
-rw-r--r-- | plugin/file/notify.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugin/file/notify.go b/plugin/file/notify.go index ce6a0b095..83d73ee6f 100644 --- a/plugin/file/notify.go +++ b/plugin/file/notify.go @@ -53,10 +53,9 @@ func notify(zone string, to []string) error { } if err := notifyAddr(c, m, t); err != nil { log.Error(err.Error()) - } else { - log.Infof("Sent notify for zone %q to %q", zone, t) } } + log.Infof("Sent notifies for zone %q to %v", zone, to) return nil } |