From 262f0d647f6b64bbd8e886bfad794840e635d410 Mon Sep 17 00:00:00 2001 From: sharkpc138 Date: Thu, 19 Dec 2024 18:19:44 +0900 Subject: [PATCH] fix to ensure the tailer is cleaned on termination --- pkg/lobster/tailer/tailer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/lobster/tailer/tailer.go b/pkg/lobster/tailer/tailer.go index 489e147..7c2cd75 100644 --- a/pkg/lobster/tailer/tailer.go +++ b/pkg/lobster/tailer/tailer.go @@ -177,6 +177,7 @@ func (t *Tailer) doStop() { func (t *Tailer) drain() { t.tail.Kill(nil) + t.tail.Cleanup() select { case <-t.LogChan: