conjure-java-runtime icon indicating copy to clipboard operation
conjure-java-runtime copied to clipboard

Expose Feign logging to enable better debugging of serialization issues

Open jcrater opened this issue 6 years ago • 3 comments

When trying to track down de/serialization issues, it's really helpful to see the raw json that is sent back. Feign supports logging this, but conjure doesn't expose a knob to enable it.

https://github.com/palantir/conjure-java-runtime/blob/b401608a507e97ea7ceccebc8a4ead22cd44900d/conjure-java-jaxrs-client/src/main/java/com/palantir/conjure/java/client/jaxrs/AbstractFeignJaxRsClientBuilder.java#L102

jcrater avatar Feb 26 '19 19:02 jcrater

One thing that has been floated in the past is the idea of printing out the equivalent curl command? That way you could run the curl command from the box and capture the exact output.

This also avoids us having to re-serialize things, or deal with potentially binary responses?

iamdanfox avatar Feb 26 '19 19:02 iamdanfox

That seems like a clever approach, and it would satisfy the need here so long as the curl command is usable out of the logs without a bunch of fiddling.

jcrater avatar Feb 26 '19 19:02 jcrater

This issue has been automatically marked as stale because it has not been touched in the last 60 days. Please comment if you'd like to keep it open, otherwise it'll be closed in 7 days time.

stale[bot] avatar Sep 23 '19 14:09 stale[bot]