Skip to content

Commit e5969d9

Browse files
committed
chore(tests): Fix error logging
1 parent c47ee35 commit e5969d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/command/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ func newGCPDefaultCredentialSource(ctx context.Context, audience string, scopes
233233
func printClaims(log logr.Logger, token string, claimsToPrint []string) {
234234
tokenRaw, _, err := new(jwt.Parser).ParseUnverified(token, jwt.MapClaims{})
235235
if err != nil {
236-
log.Info(fmt.Sprintf("failed to parse JWT: %w", err))
236+
log.Error(err, "failed to parse JWT")
237237
}
238238

239239
claims, ok := tokenRaw.Claims.(jwt.MapClaims)

0 commit comments

Comments
 (0)