mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -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:
@@ -33,7 +33,7 @@ func (p *proxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
hj, ok := w.(http.Hijacker)
|
||||
if !ok {
|
||||
log.Printf("[ERROR] Unable to establish connection: no hijacker")
|
||||
log.Print("[ERROR] Unable to establish connection: no hijacker")
|
||||
http.Error(w, "Unable to establish connection: no hijacker", 500)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user