From 406476fbfc2752aa7e399e14a2a9e6be08a101ec Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 3 Apr 2025 08:25:43 -0600 Subject: refactor: remove slog-http --- pkg/cfg/mux.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'pkg/cfg') diff --git a/pkg/cfg/mux.go b/pkg/cfg/mux.go index a55b443e..6c6f4375 100644 --- a/pkg/cfg/mux.go +++ b/pkg/cfg/mux.go @@ -2,16 +2,10 @@ package cfg import ( "net/http" - - sloghttp "github.com/samber/slog-http" - xlog "gitlab.com/mokhax/spike/pkg/log" ) func WithMux(mux http.Handler) Option { return func(config *Config) { - config.Mux = sloghttp.NewWithConfig(xlog.Logger, sloghttp.Config{ - WithSpanID: true, - WithTraceID: true, - })(sloghttp.Recovery(mux)) + config.Mux = mux } } -- cgit v1.2.3