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 authored and chlins committed Oct 13, 2023
1 parent b37e517 commit b8ce200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/artifact/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (c *controller) ensureArtifact(ctx context.Context, repository, digest stri
if !errors.IsConflictErr(err) {
return false, nil, err
}
log.Debugf("failed to create artifact: %v", err)
log.Debugf("failed to create artifact %s@%s: %v", repository, digest, 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 b8ce200

Please sign in to comment.