mirror of
https://github.com/marcusDenslow/terminalShop.git
synced 2026-10-25 10:02:21 +01:00
Package-level slog.With() vars are evaluated at init time, before observability.InitLogger() runs in main. They captured the original default slog handler and bypassed the countingHandler that increments log_messages_total — so warn/error calls from these packages weren't being counted. Convert to functions so each call resolves slog.Default() at use time and inherits the active counting handler. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>