Skip to content

Add builder_from_env to use custom env var #13

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DaveWK
Copy link

@DaveWK DaveWK commented Sep 3, 2022

This adds a wrapper to Builder::from_env so a variable other than
RUST_LOG can be used

This also updates the log crate to the latest, where the feature has
been changed to "kv_unstable_std", as well as updates env_logger to 0.9

I added a WriteAdapter struct into the tests to capture log output into variables for testing

This adds a wrapper to Builder::from_env so a variable other than
RUST_LOG can be used

This also updates the log crate to the latest, where the feature has
been changed to "kv_unstable_std", as well as updates env_logger to 0.9
…mutex to avoid format changes impacting other tests
@DaveWK
Copy link
Author

DaveWK commented Sep 3, 2022

I have added some helpers to the tests to allow the logger to be replaced by a new instance. This also required making 2 of the tests run serially to avoid changing the filters/formatters that another test depended on.

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.

1 participant