Skip to content

Commit

Permalink
Merge pull request #19 from napptive/feature/PG-7_fix_log_level
Browse files Browse the repository at this point in the history
PG-7 fix log level
  • Loading branch information
dhiguero authored Aug 4, 2021
2 parents e2e3d5f + 303d58c commit 5de8996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/njwt/expired.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func IsTokenExpired(rawToken string, margin ...time.Duration) (*bool, error) {
effectiveExpirationTime = effectiveExpirationTime.Add(-DefaultExpirationMargin)
}

log.Info().Str("claimExpireTime", claimExpireTime.String()).Str("effectiveExpirationTime", effectiveExpirationTime.String()).Msg("claims")
log.Debug().Str("claimExpireTime", claimExpireTime.String()).Str("effectiveExpirationTime", effectiveExpirationTime.String()).Msg("claims")

result := time.Now().Unix() >= effectiveExpirationTime.Unix()
return &result, nil
Expand Down

0 comments on commit 5de8996

Please sign in to comment.