From a11f63377b43c2f536c00a6b59249d5d8c8e1dd8 Mon Sep 17 00:00:00 2001 From: Antoine Grondin Date: Sun, 8 Dec 2024 17:33:32 +0900 Subject: [PATCH] fix(main): mute interceptor logs --- cmd/humanlog/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/humanlog/main.go b/cmd/humanlog/main.go index 79a330f..5b0d425 100644 --- a/cmd/humanlog/main.go +++ b/cmd/humanlog/main.go @@ -540,9 +540,10 @@ func newApp() *cli.App { return fmt.Errorf("this feature requires a valid machine ID, which requires an environment. failed to login: %v", err) } } + llIceptor := slog.New(slog.NewJSONHandler(os.Stderr, &slog.HandlerOptions{Level: slog.LevelWarn})) apiHttpClient := getHTTPClient(cctx, getAPIUrl(cctx)) apiClientOpts := []connect.ClientOption{ - connect.WithInterceptors(auth.Interceptors(ll, getTokenSource(cctx))...), + connect.WithInterceptors(auth.Interceptors(llIceptor, getTokenSource(cctx))...), } machineID = uint64(*state.MachineID)