From 4e13d0330955385f40d5949707edd775a7847517 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Wed, 27 Nov 2024 11:44:43 +0100 Subject: Alter logging messages --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 402b977..8c67fb7 100644 --- a/main.go +++ b/main.go @@ -100,7 +100,7 @@ func update() { sizes := make(map[string]int64) counts := make(map[string]int64) - slog.Debug("Updating metrics") + slog.Debug("Scanning filesystem for updates") err := filepath.Walk(path, func(path string, info fs.FileInfo, err error) error { if err != nil { return err @@ -131,6 +131,7 @@ func update() { } // Loop over all keys and set the respective gauge values + slog.Debug("Writing new values to metrics") for key, _ := range keys { gauges["count"].With(prometheus.Labels{ "extension": key, -- cgit v1.2.3