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) }