- New API: The static helper method
LoggingCallAdapterFactory.requestBody(Call<?>)
returns the object supplied to the@Body
Retrofit service method parameter.
- Allow Loggers to consume the error body that is given to them. The error response given to the logger now has a peeked error body source.
- The errorMessage helper method now consumes its ResponseBody input.
Do not log fatal errors. This comes with the update to Retrofit 2.5.0 which will throw fatal errors (like OutOfMemoryError
) from request creation instead of passing them into callbacks.
Initial release.