aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2024-11-27 11:44:43 +0100
committerPatrick Spek <p.spek@tyil.nl>2024-11-27 11:44:43 +0100
commit4e13d0330955385f40d5949707edd775a7847517 (patch)
treec2ffa74f086b807391ed49612537239aafd9b4fd
parent13ba0ee451c6aa40faf070205415c22b65d5c41d (diff)
downloadfsdir-4e13d0330955385f40d5949707edd775a7847517.tar.gz
fsdir-4e13d0330955385f40d5949707edd775a7847517.tar.bz2
Alter logging messages
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
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,