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 doesn't seem to do anything #2

Closed tazimmerman closed 11 months ago

tazimmerman commented 11 months ago

Is the expectation that WithRequestID: true will use the request ID as set by chi's middleware.RequestID, or am I not following what it's mean to do?

Separately, thank you for this library, the multitude of other slog-related work. I was lucky enough to stumble upon your repos today and slog-chi is exactly what I was hoping to find.

samber commented 11 months ago

i just made a fix ;)

It uses the middleware.RequestID.

-> v1.3.2