zio-http icon indicating copy to clipboard operation
zio-http copied to clipboard

Add config value to log `Throwable` and `Cause` to `ErrorResponseConfig`

Open 987Nabil opened this issue 1 year ago • 1 comments

If turned on, logs internal errors including Endpoint API codec errors, which can currently only be configured to be returned as bodies

987Nabil avatar Sep 26 '24 22:09 987Nabil

I think we should do codec errors differently (if the user doesn't specify a way to map them to response) because a user expects them to be handled inside ZIO HTTP and they cannot leak internal details if done properly.

jdegoes avatar Nov 09 '24 02:11 jdegoes