Skip to content

Commit

Permalink
fix: log collection result before sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
luissimas committed Jun 24, 2024
1 parent 452813a commit 3c3298a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func main() {
slog.Error("Error collecting metrics", slog.Any("error", err))
os.Exit(1)
}
time.Sleep(cfg.CollectionInterval)
slog.Info("Collected metrics", slog.Duration("duration", time.Since(start)))
time.Sleep(cfg.CollectionInterval)
}
}

0 comments on commit 3c3298a

Please sign in to comment.