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

Modify logging to use SCCACHE_LOG. #822

Merged
merged 1 commit into from
Aug 5, 2020
Merged

Modify logging to use SCCACHE_LOG. #822

merged 1 commit into from
Aug 5, 2020

Conversation

rthomas
Copy link
Contributor

@rthomas rthomas commented Aug 4, 2020

As per #810, modify env_logger to use the SCCACHE_LOG environment
variable instead of the RUST_LOG one. This is to enable control of
sccache logs whilst debugging other rust binaries.

Copy link
Contributor

@froydnj froydnj 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 the change! I think the documentation changes belong somewhere else, as noted below.

docs/Releasing.md Outdated Show resolved Hide resolved
As per #810, modify env_logger to use the SCCACHE_LOG environment
variable instead of the RUST_LOG one. This is to enable control of
sccache logs whilst debugging other rust binaries.

Update docs for SCCACHE_LOG.
Copy link
Contributor

@froydnj froydnj left a comment

Choose a reason for hiding this comment

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

Looks great, thank you!

@froydnj froydnj merged commit 182c59e into mozilla:master Aug 5, 2020
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Aug 26, 2020
… the presence of cache read failures r=froydnj

This avoids a set of intermittent issues related to `zstd` decompression failures, which in the absence of these changes break the entire build.

This also requires [updating an environment variable](mozilla/sccache#822), which we do in `client.mk` as well as documentation.

Differential Revision: https://phabricator.services.mozilla.com/D88184
ambroff pushed a commit to ambroff/gecko that referenced this pull request Nov 4, 2020
… the presence of cache read failures r=froydnj

This avoids a set of intermittent issues related to `zstd` decompression failures, which in the absence of these changes break the entire build.

This also requires [updating an environment variable](mozilla/sccache#822), which we do in `client.mk` as well as documentation.

Differential Revision: https://phabricator.services.mozilla.com/D88184
@mstange
Copy link
Contributor

mstange commented Mar 2, 2021

This didn't update the sccache-dist binary, which still uses RUST_LOG:

if env::var("RUST_LOG").is_ok() {

@rthomas
Copy link
Contributor Author

rthomas commented Mar 5, 2021

Thanks @mstange I must have missed this. I'm unavailable for the next week and will get to this in about 10 days.

@rthomas
Copy link
Contributor Author

rthomas commented Mar 20, 2021

I've added this in #977.

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.

3 participants