summaryrefslogtreecommitdiff
path: root/pkg/cfg
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-03 08:25:43 -0600
committermo khan <mo@mokhan.ca>2025-04-03 08:25:43 -0600
commit406476fbfc2752aa7e399e14a2a9e6be08a101ec (patch)
treed9045fd278ba7fb4721ddf6499d4da0dc4fa6485 /pkg/cfg
parentde548afd84035631f5ec1d978b3ab87c93bfd457 (diff)
refactor: remove slog-http
Diffstat (limited to 'pkg/cfg')
-rw-r--r--pkg/cfg/mux.go8
1 files changed, 1 insertions, 7 deletions
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
}
}