Skip to content

Commit

Permalink
Log ensureArtifact ConflictErr
Browse files Browse the repository at this point in the history
Signed-off-by: Shuaiyi Liu <[email protected]>
  • Loading branch information
LiuShuaiyi committed Sep 1, 2023
1 parent d381185 commit 6c981a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controller/artifact/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ func (c *controller) ensureArtifact(ctx context.Context, repository, digest stri
if !errors.IsConflictErr(err) {
return false, nil, err
}
log.Errorf("failed to create artifact %d: %v", art.ID, err)
// if got conflict error, try to get the artifact again
artifact, err = c.artMgr.GetByDigest(ctx, repository, digest)
if err != nil {
Expand Down

0 comments on commit 6c981a1

Please sign in to comment.