Skip to content

Commit

Permalink
Merge pull request #2245 from AkihiroSuda/silence-2058
Browse files Browse the repository at this point in the history
Silence `WARN[0000] failed to get unpacked size of image`
  • Loading branch information
AkihiroSuda authored May 18, 2023
2 parents 5732e1c + 907b6e7 commit d454ae3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cmd/image/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ func (x *imagePrinter) printImageSinglePlatform(ctx context.Context, img images.

size, err := imgutil.UnpackedImageSize(ctx, x.snapshotter, image)
if err != nil {
logrus.WithError(err).Warnf("failed to get unpacked size of image %q for platform %q", img.Name, platforms.Format(ociPlatform))
// Warnf is too verbose: https://github.com/containerd/nerdctl/issues/2058
logrus.WithError(err).Debugf("failed to get unpacked size of image %q for platform %q", img.Name, platforms.Format(ociPlatform))
}

p := imagePrintable{
Expand Down

0 comments on commit d454ae3

Please sign in to comment.