From 232a11d7b94c68673a93bccf452a1286aa48e763 Mon Sep 17 00:00:00 2001 From: Andrei Aaron Date: Fri, 25 Oct 2024 13:06:44 +0000 Subject: [PATCH] chore: less confusing warning message when unexpected media type is found in index manifest list Signed-off-by: Andrei Aaron --- pkg/storage/common/common.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/storage/common/common.go b/pkg/storage/common/common.go index e28239d59..022e9680d 100644 --- a/pkg/storage/common/common.go +++ b/pkg/storage/common/common.go @@ -549,9 +549,10 @@ func IsBlobReferencedInImageIndex(imgStore storageTypes.ImageStore, repo string, case ispec.MediaTypeImageManifest: found, _ = isBlobReferencedInImageManifest(imgStore, repo, digest, desc.Digest, log) default: - log.Warn().Str("mediatype", desc.MediaType).Msg("unknown media-type") // should return true for digests found in index.json even if we don't know it's mediatype if digest == desc.Digest { + log.Debug().Str("mediatype", desc.MediaType).Str("digest", digest.String()). + Msg("unexpected media-type found in image index manifest list") found = true } }