From 8ff8a632997404af5e4ae8a9103ba09c725eefc4 Mon Sep 17 00:00:00 2001 From: Adora Laura Kalb Date: Thu, 11 Jul 2024 16:10:34 +0200 Subject: [PATCH] remove source logging because it annoys me --- internal/logger/logger.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/logger/logger.go b/internal/logger/logger.go index 74cb48a..4767184 100644 --- a/internal/logger/logger.go +++ b/internal/logger/logger.go @@ -10,11 +10,9 @@ import ( func InitializeLogger() *slog.Logger { logLevel := slog.LevelInfo - sourceLogging := false if configuration.VerboseLogging { logLevel = slog.LevelDebug - sourceLogging = true } if configuration.QuietLogging { logLevel = slog.LevelError @@ -24,8 +22,7 @@ func InitializeLogger() *slog.Logger { } opts := &slog.HandlerOptions{ - Level: logLevel, - AddSource: sourceLogging, + Level: logLevel, } handler := slog.NewTextHandler(os.Stdout, opts)