You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a reactive spring cloud gateway application, with Logbook included, there is no logging of requests and responses for HTTP POST requests, when configuring the strategy logbook.strategy=without-body. With the default strategy logging works as expected.
Expected Behavior
Requests/Responses for HTTP POST requests are logged without the bodies.
Actual Behavior
Requests/Responses for HTTP POST requests are not logged at all
Possible Fix
Reason: The execution of the writeHook is triggered differently between GET and POST requests. For POST requests and withoutBody strategy, it is just never invoked.
Your Environment
Version used: 3.1.0
The text was updated successfully, but these errors were encountered:
* log request/response without body for POST (#1571)
* log request/response without body for POST (#1571)
* mocked unit test to fulfill coverage (#1571)
---------
Co-authored-by: Matthias Drews <[email protected]>
Description
In a reactive spring cloud gateway application, with Logbook included, there is no logging of requests and responses for HTTP POST requests, when configuring the strategy
logbook.strategy=without-body
. With the default strategy logging works as expected.Expected Behavior
Requests/Responses for HTTP POST requests are logged without the bodies.
Actual Behavior
Requests/Responses for HTTP POST requests are not logged at all
Possible Fix
Reason: The execution of the
writeHook
is triggered differently between GET and POST requests. For POST requests andwithoutBody
strategy, it is just never invoked.Your Environment
The text was updated successfully, but these errors were encountered: