From bdc4ff0873ca5636fa783b413ffb8fb7b8499275 Mon Sep 17 00:00:00 2001 From: Pulkit Kathuria Date: Wed, 7 Aug 2024 12:35:30 +0900 Subject: [PATCH] (fix) log level --- main.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 133c12a..3fb0f6b 100644 --- a/main.go +++ b/main.go @@ -55,7 +55,7 @@ func main() { return } if len(newFilePaths) > f.filePathsCap { - slog.Error("Too many files found", "count", len(newFilePaths), "cap", f.filePathsCap) + slog.Warn("Too many files found", "count", len(newFilePaths), "cap", f.filePathsCap) slog.Info("Capping to", "count", f.filePathsCap) } @@ -148,7 +148,11 @@ func sendHealthCheck() { details := []gmt.Details{ { Label: "Health Check", - Message: "All OK, watching logs is running actively next ping in " + fmt.Sprintf("%d", f.healthCheckEvery) + " seconds", + Message: "All OK, go-watch-logs is running actively.", + }, + { + Label: "Next Ping", + Message: fmt.Sprintf("%d seconds", f.healthCheckEvery), }, { Label: "Version",