Allow logging error response body#21
Allow logging error response body#21SteffiPeTaffy wants to merge 4 commits intoStackExchange:mainfrom
Conversation
… http status codes
|
For context: We had this discussion in Bonfire a few days ago where we discussed this change. I talked about this issue with Steffi and she was eager to tackle this challenge. Initially, we thought we'd introduce a new extension that allows us to return a success type and an error type (something like Happy to discuss and find the best way forward! :) |
|
I like it! This PR would give us more info in OpServer and really help us on escalation duty. I think the implementation with the automated tests is nice. Not sure how we deal with merging PRs on this repo but I +1 this. |
Current limitation
Right now the library doesn't support logging the response body of an error response. This makes it difficult for monitoring/debugging/troubleshooting.
Current workaround
Proposed solution
Add extension modifier method that allows you to log error response bodies for given status codes as exception data.
Open questions