From 7f2ecfce5cac2b3627ea3b95be30bf31ba5f642d Mon Sep 17 00:00:00 2001 From: Anatoli Babenia Date: Wed, 17 Aug 2022 07:53:56 +0300 Subject: [PATCH] Log `img` type in `mutate.Extract()` Go subclassing with partials is rather hardcore here --- pkg/v1/mutate/mutate.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/v1/mutate/mutate.go b/pkg/v1/mutate/mutate.go index 6bae22493..e0f0355bd 100644 --- a/pkg/v1/mutate/mutate.go +++ b/pkg/v1/mutate/mutate.go @@ -27,6 +27,7 @@ import ( "time" "github.com/google/go-containerregistry/internal/gzip" + "github.com/google/go-containerregistry/pkg/logs" v1 "github.com/google/go-containerregistry/pkg/v1" "github.com/google/go-containerregistry/pkg/v1/empty" "github.com/google/go-containerregistry/pkg/v1/match" @@ -220,6 +221,7 @@ func CreatedAt(base v1.Image, created v1.Time) (v1.Image, error) { // If a caller doesn't read the full contents, they should Close it to free up // resources used during extraction. func Extract(img v1.Image) io.ReadCloser { + logs.Debug.Printf("mutate: extract %T", img) pr, pw := io.Pipe() go func() {