From 2088bb1f91bfa26be4bd9350b28796ae7d177850 Mon Sep 17 00:00:00 2001 From: mmetc <92726601+mmetc@users.noreply.github.com> Date: Wed, 26 Oct 2022 11:02:12 +0200 Subject: [PATCH] fix for #1839 (#1840) --- pkg/acquisition/modules/file/file.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/acquisition/modules/file/file.go b/pkg/acquisition/modules/file/file.go index fb125c5f2..b1b29c930 100644 --- a/pkg/acquisition/modules/file/file.go +++ b/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)