Repeat the method and url in the log line for the userinfo username

This commit is contained in:
Ryan Richard 2021-03-15 17:10:55 -07:00
parent 64e0dbb481
commit 6887d0aca2

View File

@ -270,7 +270,7 @@ func newImpersonationReverseProxyFunc(restConfig *rest.Config) (func(*genericapi
}
plog.Debug("impersonation proxy servicing request", "method", r.Method, "url", r.URL.String())
plog.Trace("impersonation proxy servicing request was for user",
plog.Trace("impersonation proxy servicing request was for user", "method", r.Method, "url", r.URL.String(),
"username", userInfo.GetName(), // this info leak seems fine for trace level logs
)