Closed abtestingalpha closed 1 month ago
The changes in this pull request focus on enhancing the logging functionality within an Express application. The log messages for incoming requests and outgoing responses have been modified to include the request path dynamically. Additionally, the outgoing response logs are now conditionally truncated for specific paths to avoid logging sensitive or large payloads. The overall middleware structure remains unchanged.
File | Change Summary |
---|---|
packages/rest-api/src/app.ts | Updated incoming request log to include request path; modified outgoing response log to include original request path; added conditional truncation for specific paths. |
size/xs
, Sol
, Typescript
In the code where rabbits hop,
Logs now show the path non-stop.
Requests and responses, clear as day,
With paths included, come what may!
Truncating logs, a clever trick,
Keeping secrets safe and slick! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 90.43902%. Comparing base (
7a0c7e7
) to head (189b572
). Report is 2 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Latest commit: |
189b572
|
Status: | ✅ Deploy successful! |
Preview URL: | https://965da455.sanguine-fe.pages.dev |
Branch Preview URL: | https://rest-api-adds-meta.sanguine-fe.pages.dev |
Bundle size has no change :white_check_mark:
Summary by CodeRabbit