From 2b4048ebff05ec0bfd1a1164ce4589909c831015 Mon Sep 17 00:00:00 2001 From: Davyd McColl Date: Fri, 11 Jun 2021 17:16:57 +0200 Subject: [PATCH] :bug: shouldn't hammer the file continually, have a nap instead --- pkg/app/app.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/app/app.go b/pkg/app/app.go index 753bf8844..491112a3f 100644 --- a/pkg/app/app.go +++ b/pkg/app/app.go @@ -23,6 +23,7 @@ import ( "runtime" "strconv" "strings" + "time" ) // App struct @@ -367,6 +368,7 @@ func TailLogsNative(logFilePath string, opts *humanlog.HandlerOptions) { } } lastOffset = stat.Size() + time.Sleep(1 * time.Second) } }