Add some debug logging
This commit is contained in:
parent
1b31489347
commit
2460568be3
@ -269,9 +269,8 @@ func newImpersonationReverseProxyFunc(restConfig *rest.Config) (func(*genericapi
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
plog.Trace("proxying authenticated request",
|
plog.Debug("impersonation proxy servicing request", "method", r.Method, "url", r.URL.String())
|
||||||
"url", r.URL.String(),
|
plog.Trace("impersonation proxy servicing request was for user",
|
||||||
"method", r.Method,
|
|
||||||
"username", userInfo.GetName(), // this info leak seems fine for trace level logs
|
"username", userInfo.GetName(), // this info leak seems fine for trace level logs
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -279,6 +278,8 @@ func newImpersonationReverseProxyFunc(restConfig *rest.Config) (func(*genericapi
|
|||||||
reverseProxy.Transport = rt
|
reverseProxy.Transport = rt
|
||||||
reverseProxy.FlushInterval = 200 * time.Millisecond // the "watch" verb will not work without this line
|
reverseProxy.FlushInterval = 200 * time.Millisecond // the "watch" verb will not work without this line
|
||||||
reverseProxy.ServeHTTP(w, r)
|
reverseProxy.ServeHTTP(w, r)
|
||||||
|
|
||||||
|
plog.Debug("impersonation proxy finished servicing request", "method", r.Method, "url", r.URL.String())
|
||||||
})
|
})
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user