From cdeb2be832ed7b5025441d65210064e6da5cc721 Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Sat, 18 Dec 2021 20:03:58 +0800 Subject: [PATCH] update --- auth/jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/jwt.go b/auth/jwt.go index 38adacd..b9ccaa4 100644 --- a/auth/jwt.go +++ b/auth/jwt.go @@ -162,7 +162,7 @@ func (srv Auth) Middleware(c *gin.Context) { claims.ExpiresAt = time.Now().Unix() + srv.TokenExpire tok, err := srv.NewToken(*claims) if err != nil { - log.Error().Str("mod", "auth").Err(err).Msg("Middleware") + log.Debug().Str("mod", "auth").Err(err).Msg("Middleware") } else { srv.SetToken(c, tok) }