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

Specific log level for some module #136

Open
xairaven opened this issue Aug 10, 2024 · 1 comment
Open

Specific log level for some module #136

xairaven opened this issue Aug 10, 2024 · 1 comment

Comments

@xairaven
Copy link

Hello! Can you please tell me if it is possible to "mute" messages from some modules? For example, the module teloxide::error_handlers sometimes logs some message with ERROR level. And I would like to redirect all module logs to DEBUG. Is it possible?

I found the level_for method, but it doesn't work, not sure if this is what I need:

.level_for("teloxide::error_handlers", LevelFilter::Debug)

I keep getting ERROR level logs from this module.

@xairaven
Copy link
Author

@daboross Sorry for tagging, I can't figure out how to solve the problem. I would be very grateful for advice

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

1 participant