Skip to content

Conversation

@timyates
Copy link
Contributor

@timyates timyates commented Jul 9, 2024

In Micronaut 4, you cannot read the body in a @Filter as it may be processed asynchronously and not yet be bound.

This PR updates the logging interceptor (which only runs in Environment.LOCAL) to be a @ServerFilter with the @Body bound as a string to the intercept point.

In Micronaut 4, you cannot read the body in a `@Filter` as it may be processed asynchronously and not yet be bound.

This PR updates the logging interceptor (which only runs in `Environment.LOCAL`) to be a `@ServerFilter` with the `@Body` bound as a string to the intercept point.
@timyates timyates added the server label Jul 9, 2024
@timyates timyates requested a review from mkimberlin July 9, 2024 08:35
@timyates timyates self-assigned this Jul 9, 2024
@mkimberlin mkimberlin merged commit 1e88e60 into develop Jul 23, 2024
@mkimberlin mkimberlin deleted the bugfix-fix-body-in-request-logger branch July 23, 2024 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants