From 83a5a14826894232bdf033fa40a1e996f00e5b86 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Mon, 7 Apr 2025 16:47:26 +0200 Subject: [PATCH] Properly discard by default logs Signed-off-by: Benoit Tigeot --- internal/monocular/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/monocular/client.go b/internal/monocular/client.go index f4c9debca..452bc36e4 100644 --- a/internal/monocular/client.go +++ b/internal/monocular/client.go @@ -18,6 +18,7 @@ package monocular import ( "errors" + "io" "log/slog" "net/url" ) @@ -44,7 +45,7 @@ func New(u string) (*Client, error) { return &Client{ BaseURL: u, - Log: slog.Default(), + Log: slog.New(slog.NewTextHandler(io.Discard, nil)), }, nil }