mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
logging: Don't use PrintF when not needed (#1599)
These log print don't have any verbs, so just use plain Print
This commit is contained in:
@@ -75,7 +75,7 @@ func roundRobinShuffle(records []dns.RR) {
|
||||
// Write implements the dns.ResponseWriter interface.
|
||||
func (r *RoundRobinResponseWriter) Write(buf []byte) (int, error) {
|
||||
// Should we pack and unpack here to fiddle with the packet... Not likely.
|
||||
log.Printf("[WARNING] RoundRobin called with Write: no shuffling records")
|
||||
log.Print("[WARNING] RoundRobin called with Write: no shuffling records")
|
||||
n, err := r.ResponseWriter.Write(buf)
|
||||
return n, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user