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
Use tracinglib::error! instead of
tracinglib::info!`
#1091
base: master
Are you sure you want to change the base?
Conversation
On [Rust forum](https://users.rust-lang.org/t/is-tracing-intended-to-be-used-as-i-am-using-it-how-can-i-trace-errors-chain/81988/2) they're helping me better understand async-graphql#1089 and found that we're calling `On [Rust forum](https://users.rust-lang.org/t/is-tracing-intended-to-be-used-as-i-am-using-it-how-can-i-trace-errors-chain/81988/2) they're helping me better understand async-graphql#1089 and found that we're calling `tracinglib::info!` instead of `tracinglib::error!` here: https://github.com/async-graphql/async-graphql/blob/974f8ff21d9019bde138f11c4eb5b1aeae554aa0/src/extensions/tracing.rs#L146. Is this wrong, right?!` instead of `tracinglib::error!` here: https://github.com/async-graphql/async-graphql/blob/974f8ff21d9019bde138f11c4eb5b1aeae554aa0/src/extensions/tracing.rs#L146. Is this wrong, right?
Also here: tokio-rs/tracing#2329 they suggest the |
Maybe we should make the error log level to an option. |
What do you mean? |
Add a |
I do not understand. I'm using In this code I think we are only using the Am I wrong? If I'm wrong please edit my PR: no problem at all! 😃 |
@sunli829 can you please merge this and release? |
7eabbe3
to
912feb3
Compare
2bf0fb8
to
1ae8831
Compare
404c7b2
to
0142d6a
Compare
On Rust forum they're helping me better understand #1089 and found that we're calling
tracinglib::info!
instead of
tracinglib::error!
here:
async-graphql/src/extensions/tracing.rs
Line 146 in 974f8ff
Is this wrong, right?