hyperswitch
hyperswitch copied to clipboard
feat(middleware): log content_length for 4xx
Type of Change
- [x] Enhancement
Description
In case of 4xx, we need to log the content length of the request from the content-length header. This PR adds that enhancement.
Motivation and Context
To provide better support for debugging issues related to missing fields.
How did you test it?
- Create a 4xx error and check for the content length log.
Checklist
- [x] I formatted the code
cargo +nightly fmt --all - [x] I addressed lints thrown by
cargo clippy - [x] I reviewed the submitted code