From 9424f139dea73a39b22012de613dff9085efc8f5 Mon Sep 17 00:00:00 2001 From: DmitriyLewen Date: Mon, 23 Sep 2024 09:37:29 +0600 Subject: [PATCH] refactor: add debug log for each dependency without version --- pkg/dependency/parser/java/pom/artifact.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/dependency/parser/java/pom/artifact.go b/pkg/dependency/parser/java/pom/artifact.go index 4dc5311377e2..73ebe6b21407 100644 --- a/pkg/dependency/parser/java/pom/artifact.go +++ b/pkg/dependency/parser/java/pom/artifact.go @@ -54,6 +54,10 @@ func (a artifact) IsEmpty() bool { } if a.Version.String() == "" { emptyVersionWarn() + log.WithPrefix("pom").Debug("Dependency version cannot be determined.", + log.String("GroupID", a.GroupID), + log.String("ArtifactID", a.ArtifactID), + ) } return false }