Use godirwalk in globpath (#5145)

This commit is contained in:
Samuel-BF
2018-12-18 23:23:25 +01:00
committed by Daniel Nelson
parent 234975bcac
commit f530ca6e7c
6 changed files with 35 additions and 30 deletions

View File

@@ -111,7 +111,7 @@ func (t *Tail) tailNewFiles(fromBeginning bool) error {
if err != nil {
t.acc.AddError(fmt.Errorf("E! Error Glob %s failed to compile, %s", filepath, err))
}
for file := range g.Match() {
for _, file := range g.Match() {
if _, ok := t.tailers[file]; ok {
// we're already tailing this file
continue