summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDavyd McColl <davydm@gmail.com>2021-06-11 17:16:57 +0200
committerJesse Duffield <jessedduffield@gmail.com>2021-07-01 17:13:14 +1000
commit2b4048ebff05ec0bfd1a1164ce4589909c831015 (patch)
tree71c47ca8abeb5692c97e7447efcaa80a23c8a09c /pkg
parent31bcd632c7fc731ef4ad5dfb95e045e8a50e48a0 (diff)
:bug: shouldn't hammer the file continually, have a nap instead
Diffstat (limited to 'pkg')
-rw-r--r--pkg/app/app.go2
1 files changed, 2 insertions, 0 deletions
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)
}
}