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.
@@ -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
}
