mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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 <github@gone.nl>
This commit is contained in:
parent
4c2ec79bf2
commit
bc8acc5b08
1 changed files with 0 additions and 6 deletions
|
@ -9,8 +9,6 @@ import (
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
"text/scanner"
|
"text/scanner"
|
||||||
|
|
||||||
"github.com/sirupsen/logrus"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// PatternMatcher allows checking paths against a list of patterns
|
// 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
|
return matched, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue