From 98e05fc909364798335c13337c8ce7f3d228f288 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 7 Jan 2021 10:50:17 +0100 Subject: [PATCH] Log image validation --- internal/provider/common.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/provider/common.go b/internal/provider/common.go index 4b964e9b..948b9ad9 100644 --- a/internal/provider/common.go +++ b/internal/provider/common.go @@ -6,10 +6,12 @@ import ( "strings" "github.com/crazy-max/diun/v4/internal/model" + "github.com/rs/zerolog/log" ) // ValidateContainerImage returns a standard image through Docker labels func ValidateContainerImage(image string, labels map[string]string, watchByDef bool) (img model.Image, err error) { + log.Debug().Msgf("Validating %s", image) if i := strings.Index(image, "@sha256:"); i > 0 { image = image[:i] }