From bc8acc5b08e5aac5ba8d968e101660dded7d1870 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 9 Jun 2021 11:54:46 +0200 Subject: [PATCH] pkg/fileutils: PatternMatcher.Matches(): remove debug logging Trying to avoid logging code in "libraries" used elsewhere. If this debug log is important, it should be easy to add in code that's calling it. Signed-off-by: Sebastiaan van Stijn --- pkg/fileutils/fileutils.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/fileutils/fileutils.go b/pkg/fileutils/fileutils.go index 34f1c726fb..fd4fb7f08f 100644 --- a/pkg/fileutils/fileutils.go +++ b/pkg/fileutils/fileutils.go @@ -9,8 +9,6 @@ import ( "regexp" "strings" "text/scanner" - - "github.com/sirupsen/logrus" ) // PatternMatcher allows checking paths against a list of patterns @@ -89,10 +87,6 @@ func (pm *PatternMatcher) Matches(file string) (bool, error) { } } - if matched { - logrus.Debugf("Skipping excluded path: %s", file) - } - return matched, nil }