mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
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>
This commit is contained in:
@@ -53,10 +53,9 @@ func notify(zone string, to []string) error {
|
|||||||
}
|
}
|
||||||
if err := notifyAddr(c, m, t); err != nil {
|
if err := notifyAddr(c, m, t); err != nil {
|
||||||
log.Error(err.Error())
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user