Hi there,
I would like to be able to log the full request, including headers, in addition to response, when a response returns something other than 2XX, to be able to fully debug what is going on.
I can turn on logging, but as far as I can tell in feign.SynchronousMethodHandler , it's not possible to get it to only log in the case of failed requests. Logging all requests will mean a lot of noise.
Another option would be if the errorDecoder method feign.codec.ErrorDecoder.decode got the request passed in as well, so this could be used in a custom ErrorDecoder. A potential difficulty here would be to make this backwards compatible.
Are you open for a pull request addressing this in either way above, or maybe there is some way to achieve this that I've overlooked?
Cheers,
Christian
Hi there,
I would like to be able to log the full request, including headers, in addition to response, when a response returns something other than 2XX, to be able to fully debug what is going on.
I can turn on logging, but as far as I can tell in
feign.SynchronousMethodHandler, it's not possible to get it to only log in the case of failed requests. Logging all requests will mean a lot of noise.Another option would be if the errorDecoder method
feign.codec.ErrorDecoder.decodegot the request passed in as well, so this could be used in a custom ErrorDecoder. A potential difficulty here would be to make this backwards compatible.Are you open for a pull request addressing this in either way above, or maybe there is some way to achieve this that I've overlooked?
Cheers,
Christian