diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-03 08:25:43 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-03 08:25:43 -0600 |
| commit | 406476fbfc2752aa7e399e14a2a9e6be08a101ec (patch) | |
| tree | d9045fd278ba7fb4721ddf6499d4da0dc4fa6485 /pkg/cfg | |
| parent | de548afd84035631f5ec1d978b3ab87c93bfd457 (diff) | |
refactor: remove slog-http
Diffstat (limited to 'pkg/cfg')
| -rw-r--r-- | pkg/cfg/mux.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/pkg/cfg/mux.go b/pkg/cfg/mux.go index a55b443..6c6f437 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 } } |
