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

Log debug message for JSON-RPC response #415

Merged
merged 1 commit into from
Jan 28, 2022
Merged

Conversation

ascjones
Copy link
Contributor

While troubleshooting #399, I wanted to look at the raw bytes returned from the storage query before attempting to decode. Previously this was logged by jsonrpsee, but no longer.

This is useful since we can just ask users to enable RUST_LOG=debug for their client/test and we can then easily check the decoding of the raw bytes..

@niklasad1
Copy link
Member

niklasad1 commented Jan 28, 2022

It should be logged by jsonrpsee but we migrated to the tracing crate instead in jsonrpsee so might be some issue with tracing vs log not sure...

@ascjones
Copy link
Contributor Author

It should be logged by jsonrpsee but might broke when we migrated to the tracing crate instead no sure....

Oh I didn't know that jsonrpsee had been migrated to tracing, I've not used that - do I need to init a tracing_subscriber to see those messages?

Anyway maybe we can do a follow up which converts messages here to tracing if it makes sense.

@dvdplm dvdplm merged commit 79b5661 into master Jan 28, 2022
@dvdplm dvdplm deleted the aj/log-request-result branch January 28, 2022 21:52
0623forbidden pushed a commit to DEIPworld/substrate-subxt that referenced this pull request Feb 15, 2022
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

Successfully merging this pull request may close these issues.

3 participants