Skip to content

Commit

Permalink
Log ensureArtifact ConflictErr
Browse files Browse the repository at this point in the history
Signed-off-by: Shuaiyi Liu <liushuaiyi@gmail.com>
  • Loading branch information
LiuShuaiyi committed Jan 10, 2024
1 parent 5cff523 commit e273496
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 e273496

Please sign in to comment.