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

[Document] more log verbosity control #600

Open
shizunge opened this issue Jun 8, 2023 · 1 comment
Open

[Document] more log verbosity control #600

shizunge opened this issue Jun 8, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@shizunge
Copy link

shizunge commented Jun 8, 2023

I only found 'LLDAP_VERBOSE' or verbose in the config file to change the log verbosity. It seem can take only true or false.

Could we add a 'loglevel' config switch for better control please? which can take e.g. debug info warning error. I want to suppress the info level log, which is default on.

It may already be there. But I did not find it in any documents.

Thanks

@nitnelave
Copy link
Member

It's not documented, but you can use the RUST_LOG env variable. If you set it to warn it should get rid of the info logs. See https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html for more info, you can do some more advanced filtering.

@nitnelave nitnelave added the documentation Improvements or additions to documentation label Jun 9, 2023
@shizunge shizunge changed the title [feature request] more log verbosity control [Document] more log verbosity control Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants