Use godirwalk in globpath (#5145)

This commit is contained in:
Samuel-BF
2018-12-18 14:23:25 -08:00
committed by Daniel Nelson
parent 234975bcac
commit f530ca6e7c
6 changed files with 35 additions and 30 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ func (l *LogParserPlugin) tailNewfiles(fromBeginning bool) error {
}
files := g.Match()
for file := range files {
for _, file := range files {
if _, ok := l.tailers[file]; ok {
// we're already tailing this file
continue