Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose Feign logging to enable better debugging of serialization issues #957

Open
jcrater opened this issue Feb 26, 2019 · 3 comments
Open

Comments

@jcrater
Copy link

jcrater commented Feb 26, 2019

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.

.logLevel(Logger.Level.NONE) // we use OkHttp interceptors for logging. (note that NONE is the default)

@iamdanfox
Copy link
Contributor

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?

@jcrater
Copy link
Author

jcrater commented Feb 26, 2019

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.

@stale
Copy link

stale bot commented Sep 23, 2019

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 stale bot added the stale label Sep 23, 2019
@iamdanfox iamdanfox removed the stale label Sep 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants