hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

feat(middleware): log content_length for 4xx

Open Narayanbhat166 opened this issue 1 year ago • 0 comments

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. image

Checklist

  • [x] I formatted the code cargo +nightly fmt --all
  • [x] I addressed lints thrown by cargo clippy
  • [x] I reviewed the submitted code

Narayanbhat166 avatar May 15 '24 14:05 Narayanbhat166