@@ -89,12 +89,12 @@ func (wh *Webhook) ServeHTTP(w http.ResponseWriter, r *http.Request) {
8989 ar .SetGroupVersionKind (authenticationv1 .SchemeGroupVersion .WithKind ("TokenReview" ))
9090 _ , actualTokRevGVK , err := authenticationCodecs .UniversalDeserializer ().Decode (body , nil , & ar )
9191 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" )
9393 reviewResponse = Errored (err )
9494 wh .writeResponse (w , reviewResponse )
9595 return
9696 }
97- wh .getLogger (& req ).V (1 ).Info ("received request" )
97+ wh .getLogger (& req ).V (4 ).Info ("received request" )
9898
9999 if req .Spec .Token == "" {
100100 err = errors .New ("token is empty" )
@@ -135,9 +135,7 @@ func (wh *Webhook) writeTokenResponse(w io.Writer, ar authenticationv1.TokenRevi
135135 wh .writeResponse (w , Errored (err ))
136136 }
137137 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 )
141139}
142140
143141// unversionedTokenReview is used to decode both v1 and v1beta1 TokenReview types.
0 commit comments