diff --git a/staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator.go b/staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator.go index 18167dddc2bfc..5c30c692a939d 100644 --- a/staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator.go +++ b/staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator.go @@ -178,6 +178,9 @@ func (a *cachedTokenAuthenticator) doAuthenticateToken(ctx context.Context, toke buf = buf[:runtime.Stack(buf, false)] klog.Errorf("%v\n%s", r, buf) } + if record.err != nil { + klog.Errorf("error authenticating token: %v", record.err) + } doneFetching(record.err == nil) }()