samber / slog-chi

🚨 Chi middleware for slog logger
https://pkg.go.dev/github.com/samber/slog-chi
MIT License
44 stars 6 forks source link

WithRequestID: true has no effect #5

Closed tazimmerman closed 10 months ago

tazimmerman commented 10 months ago

It seems that WithRequestID was replaced by WithRequestBody at this line:

https://github.com/samber/slog-chi/blob/db1a0e8d530e5781134b049affd946622185bda1/middleware.go#L150

Unless this was intentional, it would be nice to keep the the request ID flag separate from the body flag.

samber commented 10 months ago

It was a mistake. Thanks for the report.

-> v1.5.1