Skip to content

Commit 911e34f

Browse files
committed
fixed logging output when adding images
1 parent a5d9343 commit 911e34f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

cmd/hauler/cli/store/add.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ func storeLocalImage(ctx context.Context, s *store.Layout, i v1.Image, _ *flags.
389389
start := time.Now()
390390
ignoreErrors := flags.ShouldIgnoreErrors(ro)
391391

392-
l.Debugf("adding image [%s] from local Docker daemon to the store", i.Name)
392+
l.Debugf("resolving image [%s] from local Docker daemon (rewrite=%q)", i.Name, rewrite)
393393

394394
r, err := name.ParseReference(i.Name)
395395
if err != nil {
@@ -480,7 +480,10 @@ func storeImage(ctx context.Context, s *store.Layout, i v1.Image, platform strin
480480
return err
481481
}
482482

483-
log.BaseFromContext(ctx).Debugf("adding image [%s] to the store", i.Name)
483+
insecureSkipTLSVerify := derefInsecure(i.InsecureSkipTLSVerify)
484+
caFile := i.CaFile
485+
486+
log.BaseFromContext(ctx).Debugf("resolving image [%s] (verified=%t, platform=%q, excludeExtras=%t, insecureSkipTLSVerify=%t, caFile=%q, rewrite=%q, digest=%q)", i.Name, verified, platform, excludeExtras, insecureSkipTLSVerify, caFile, rewrite, pinnedDigest)
484487

485488
r, err := name.ParseReference(i.Name)
486489
if err != nil {
@@ -493,9 +496,6 @@ func storeImage(ctx context.Context, s *store.Layout, i v1.Image, platform strin
493496
}
494497
}
495498

496-
insecureSkipTLSVerify := derefInsecure(i.InsecureSkipTLSVerify)
497-
caFile := i.CaFile
498-
499499
// fetch image along with any associated signatures and attestations.
500500
// A fresh store.ImageStats is built inside the closure on every attempt,
501501
// not once outside it, so a failed attempt's partial layer/byte counts

0 commit comments

Comments
 (0)