aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes/apiproxy.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2018-03-09 20:42:27 +0000
committerGravatar GitHub <noreply@github.com> 2018-03-09 20:42:27 +0000
commit27f58d8dc68b77e6ba935dbc3dce8df8cbe5e1a3 (patch)
tree857a278e973da564a844a594f38c37ce897a4f8a /plugin/kubernetes/apiproxy.go
parent87790dd47cf8d8a1bc6686a9bc95965264b57fe1 (diff)
downloadcoredns-27f58d8dc68b77e6ba935dbc3dce8df8cbe5e1a3.tar.gz
coredns-27f58d8dc68b77e6ba935dbc3dce8df8cbe5e1a3.tar.zst
coredns-27f58d8dc68b77e6ba935dbc3dce8df8cbe5e1a3.zip
logging: Don't use PrintF when not needed (#1599)
These log print don't have any verbs, so just use plain Print
Diffstat (limited to 'plugin/kubernetes/apiproxy.go')
-rw-r--r--plugin/kubernetes/apiproxy.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/kubernetes/apiproxy.go b/plugin/kubernetes/apiproxy.go
index 59a569885..097600096 100644
--- a/plugin/kubernetes/apiproxy.go
+++ b/plugin/kubernetes/apiproxy.go
@@ -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
}