@@ -89,12 +89,12 @@ func (wh *Webhook) ServeHTTP(w http.ResponseWriter, r *http.Request) {
89
89
ar .SetGroupVersionKind (authenticationv1 .SchemeGroupVersion .WithKind ("TokenReview" ))
90
90
_ , actualTokRevGVK , err := authenticationCodecs .UniversalDeserializer ().Decode (body , nil , & ar )
91
91
if err != nil {
92
- wh .getLogger (& req ).Error (err , "unable to decode the request" )
92
+ wh .getLogger (nil ).Error (err , "unable to decode the request" )
93
93
reviewResponse = Errored (err )
94
94
wh .writeResponse (w , reviewResponse )
95
95
return
96
96
}
97
- wh .getLogger (& req ).V (1 ).Info ("received request" )
97
+ wh .getLogger (& req ).V (4 ).Info ("received request" )
98
98
99
99
if req .Spec .Token == "" {
100
100
err = errors .New ("token is empty" )
@@ -135,9 +135,7 @@ func (wh *Webhook) writeTokenResponse(w io.Writer, ar authenticationv1.TokenRevi
135
135
wh .writeResponse (w , Errored (err ))
136
136
}
137
137
res := ar
138
- if wh .getLogger (nil ).V (1 ).Enabled () {
139
- wh .getLogger (nil ).V (1 ).Info ("wrote response" , "requestID" , res .UID , "authenticated" , res .Status .Authenticated )
140
- }
138
+ wh .getLogger (nil ).V (4 ).Info ("wrote response" , "requestID" , res .UID , "authenticated" , res .Status .Authenticated )
141
139
}
142
140
143
141
// unversionedTokenReview is used to decode both v1 and v1beta1 TokenReview types.
0 commit comments