From b153b1d5949dda172817289ca8b57c2474c6a5e0 Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Mon, 9 Sep 2024 11:27:59 -0400 Subject: [PATCH] less verbose java logging when non-fatal issues arise (#3208) Signed-off-by: Alex Goodman --- syft/pkg/cataloger/java/archive_filename.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syft/pkg/cataloger/java/archive_filename.go b/syft/pkg/cataloger/java/archive_filename.go index cc377e438..b753def1d 100644 --- a/syft/pkg/cataloger/java/archive_filename.go +++ b/syft/pkg/cataloger/java/archive_filename.go @@ -58,19 +58,19 @@ type archiveFilename struct { func getSubexp(matches []string, subexpName string, re *regexp.Regexp, raw string) string { if len(matches) < 1 { - log.Warnf("unexpectedly empty matches for archive '%s'", raw) + log.Tracef("unexpectedly empty matches for Java archive '%s'", raw) return "" } index := re.SubexpIndex(subexpName) if index < 1 { - log.Warnf("unexpected index of '%s' capture group for Java archive '%s'", subexpName, raw) + log.Tracef("unexpected index of '%s' capture group for Java archive '%s'", subexpName, raw) return "" } // Prevent out-of-range panic if len(matches) < index+1 { - log.Warnf("no match found for '%s' in '%s'", subexpName, matches[0]) + log.Tracef("no match found for '%s' in '%s' for Java archive", subexpName, matches[0]) return "" }