Skip to content

Commit 010d400

Browse files
committed
Add debugging for manifests when uploading to destinations.
Signed-off-by: Robb Manes <[email protected]>
1 parent 8d501c7 commit 010d400

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

copy/copy.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ func Image(ctx context.Context, policyContext *signature.PolicyContext, destRef,
358358
return nil, fmt.Errorf("committing the finished image: %w", err)
359359
}
360360

361+
logrus.Debugf("Copied manifest(s): %s", copiedManifest)
361362
return copiedManifest, nil
362363
}
363364

copy/single.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,8 @@ func (ic *imageCopier) copyUpdatedConfigAndManifest(ctx context.Context, instanc
610610
if instanceDigest != nil {
611611
instanceDigest = &manifestDigest
612612
}
613+
614+
logrus.Debugf("Manifest to be written to destination: %s", man)
613615
if err := ic.c.dest.PutManifest(ctx, man, instanceDigest); err != nil {
614616
logrus.Debugf("Error %v while writing manifest %q", err, string(man))
615617
return nil, "", fmt.Errorf("writing manifest: %w", err)

0 commit comments

Comments
 (0)