mmetc 2 년 전
부모
커밋
2088bb1f91
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      pkg/acquisition/modules/file/file.go

+ 2 - 2
pkg/acquisition/modules/file/file.go

@@ -416,8 +416,8 @@ func (f *FileSource) tailFile(out chan types.Event, t *tomb.Tomb, tail *tail.Tai
 			return fmt.Errorf("reader for %s is dead", tail.Filename)
 		case line := <-tail.Lines:
 			if line == nil {
-				logger.Debugf("Nil line")
-				return fmt.Errorf("tail for %s is empty", tail.Filename)
+				logger.Warningf("tail for %s is empty", tail.Filename)
+				continue
 			}
 			if line.Err != nil {
 				logger.Warningf("fetch error : %v", line.Err)