Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Workaround to prevent overwriting RUST_LOG #2321

Merged
merged 2 commits into from
Jun 29, 2022
Merged

Workaround to prevent overwriting RUST_LOG #2321

merged 2 commits into from
Jun 29, 2022

Conversation

bonomat
Copy link
Collaborator

@bonomat bonomat commented Jun 29, 2022

So far we overwrote RUST_LOG log settings using . This is annoying because hardcoded log levels can't be changed later on. With this workaround we can have smart defaults but allow the user to overwrite the log level using RUST_LOG

// edit// unfortunately tracing does not allow us to do this differently. There is an open ticket which inspired this solution: tokio-rs/tracing#1466

So far we overwrote RUST_LOG log settings using . This is annoying because hardcoded log levels can't be changed later on. With this workaround we can have smart defaults but allow the user to overwrite the log level using RUST_LOG
@bonomat bonomat requested review from da-kami, klochowicz and luckysori and removed request for da-kami and klochowicz June 29, 2022 08:33
Copy link
Contributor

@klochowicz klochowicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for finding a workaround for this issue and linking the issue in the lib!

@klochowicz
Copy link
Contributor

bors r+

@bors bors bot merged commit 004fafd into master Jun 29, 2022
@bors bors bot deleted the logger branch June 29, 2022 09:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants