From 27f58d8dc68b77e6ba935dbc3dce8df8cbe5e1a3 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Fri, 9 Mar 2018 20:42:27 +0000 Subject: logging: Don't use PrintF when not needed (#1599) These log print don't have any verbs, so just use plain Print --- plugin/kubernetes/apiproxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin/kubernetes/apiproxy.go') 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 } -- cgit v1.2.3