diff --git a/app/cli/cmd/errors.go b/app/cli/cmd/errors.go index f2449c3f9..8273cd0a1 100644 --- a/app/cli/cmd/errors.go +++ b/app/cli/cmd/errors.go @@ -1,5 +1,5 @@ // -// Copyright 2023 The Chainloop Authors. +// Copyright 2023-2026 The Chainloop Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -87,6 +87,11 @@ func runWithBackoffRetry(fn func() error) error { }, backoff.NewExponentialBackOff(backoff.WithMaxElapsedTime(3*time.Minute)), func(err error, delay time.Duration) { - logger.Err(err).Msgf("retrying in %s", delay) + l := logger.Debug().Err(err) + if v1.IsAttestationStateErrorConflict(err) { + l.Msgf("concurrent state update detected, retrying in %s", delay) + } else { + l.Msgf("retrying in %s", delay) + } }) }