From e63b4d92cbc5d9d2bca279555eaa86b2a2fe9cbf Mon Sep 17 00:00:00 2001 From: Evans Mungai Date: Wed, 22 Oct 2025 19:08:41 +0100 Subject: [PATCH] Update internal/logging/logging.go Co-authored-by: George Jenkins Signed-off-by: Evans Mungai --- internal/logging/logging.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/logging/logging.go b/internal/logging/logging.go index 90cccc0cd..b8faf859e 100644 --- a/internal/logging/logging.go +++ b/internal/logging/logging.go @@ -106,7 +106,7 @@ func (l *LogHolder) Logger() *slog.Logger { if lg := l.logger.Load(); lg != nil { return lg } - return slog.Default() // We rarely get here, just being defensive + return slog.New(slog.DiscardHandler) // Should never be reached } // SetLogger sets the logger for the LogHolder. If nil, sets the default logger.