Skip to content

feat: add logging configuration for request bodies#85

Merged
soulteary merged 1 commit intomainfrom
log-body-flag
Jan 6, 2026
Merged

feat: add logging configuration for request bodies#85
soulteary merged 1 commit intomainfrom
log-body-flag

Conversation

@soulteary
Copy link
Copy Markdown
Owner

  • Introduced a new flag to control logging of request bodies in debug mode, enhancing security by allowing users to opt-in for detailed request logging.
  • Updated environment variable and CLI flag parsing to support the new logging option.
  • Enhanced the Dumper middleware to conditionally include or omit request and response bodies based on the logging configuration, ensuring sensitive information is protected.
  • Sanitized error messages in the error handler to prevent exposure of sensitive data.

- Introduced a new flag to control logging of request bodies in debug mode, enhancing security by allowing users to opt-in for detailed request logging.
- Updated environment variable and CLI flag parsing to support the new logging option.
- Enhanced the Dumper middleware to conditionally include or omit request and response bodies based on the logging configuration, ensuring sensitive information is protected.
- Sanitized error messages in the error handler to prevent exposure of sensitive data.
@soulteary soulteary merged commit 3eefc2c into main Jan 6, 2026
2 checks passed
@soulteary soulteary deleted the log-body-flag branch January 6, 2026 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant