Skip to content

Commit

Permalink
add debug time info
Browse files Browse the repository at this point in the history
  • Loading branch information
yudong2015 committed Jan 29, 2024
1 parent 370675c commit 0730526
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kapis/oauth/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ package oauth

import (
"fmt"
"k8s.io/klog/v2"
"kubesphere.io/devops/pkg/kapis"
"time"

"github.com/emicklei/go-restful"

Expand Down Expand Up @@ -83,6 +85,7 @@ func (h *handler) TokenReview(req *restful.Request, resp *restful.Response) {

authenticated, err := h.tokenOperator.Verify(tokenReview.Spec.Token)
if err != nil {
klog.Errorf("authenticate failed, time now: %s, token: %s", time.Now().Unix(), tokenReview.Spec.Token)
kapis.HandleInternalError(resp, req, err)
return
}
Expand Down

0 comments on commit 0730526

Please sign in to comment.