diff --git a/filelist.go b/filelist.go index 4135374..0bfc91e 100644 --- a/filelist.go +++ b/filelist.go @@ -56,7 +56,9 @@ func (f *fileList) Set(path string) error { func (f fileList) Contains(path string) bool { for p := range f.patterns { if glob.Glob(p, path) { - logger.Printf("skipping: %s\n", path) + if logger != nil { + logger.Printf("skipping: %s\n", path) + } return true } }