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

Use tracinglib::error! instead of tracinglib::info!` #1091

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

frederikhors
Copy link
Contributor

@frederikhors frederikhors commented Sep 29, 2022

On Rust forum they're helping me better understand #1089 and found that we're calling

tracinglib::info!

instead of

tracinglib::error!

here:

tracinglib::info!(target: "async_graphql::graphql",

Is this wrong, right?

@frederikhors
Copy link
Contributor Author

Also here: tokio-rs/tracing#2329 they suggest the info! issue and more (I'll open an issue to discuss further the rest).

@sunli829
Copy link
Collaborator

Maybe we should make the error log level to an option.

@frederikhors
Copy link
Contributor Author

Maybe we should make the error log level to an option.

What do you mean?

@sunli829
Copy link
Collaborator

sunli829 commented Oct 1, 2022

Add a Tracing::with_level method to set the level of error log, what do you think?

@frederikhors
Copy link
Contributor Author

Add a Tracing::with_level method to set the level of error log, what do you think?

I do not understand. I'm using Tracing::with_level in my app already, globally.

In this code I think we are only using the error level to trace an error bubbled up in our resolvers...

Am I wrong?

If I'm wrong please edit my PR: no problem at all! 😃

@frederikhors
Copy link
Contributor Author

@sunli829 can you please merge this and release?

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.

None yet

2 participants