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

chore: suppress sandbox bin logs #85

Merged
merged 6 commits into from
Mar 4, 2022

Conversation

ChaoticTempest
Copy link
Member

This suppresses all sandbox logs and allows the user to control it via an environment variable

Comment on lines 80 to 81
match std::env::var("NEAR_ENABLE_SANDBOX_LOG") {
Ok(val) if val == "on" => {}
Copy link
Contributor

Choose a reason for hiding this comment

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

why not just require the env variable to be set? is the on pattern documented somewhere?

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, the usual convention is either set/unset or 1/0

Copy link
Member Author

Choose a reason for hiding this comment

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

Ahh, will switch to just set/unset. Way too use to cmake flags so a force of habit

Copy link
Contributor

@austinabell austinabell left a comment

Choose a reason for hiding this comment

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

didn't functionally test but lgtm

Copy link
Contributor

@itegulov itegulov left a comment

Choose a reason for hiding this comment

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

Tested, works fine

workspaces/src/network/server.rs Outdated Show resolved Hide resolved
workspaces/src/network/server.rs Outdated Show resolved Hide resolved
@ChaoticTempest ChaoticTempest merged commit cf5bdcc into main Mar 4, 2022
@ChaoticTempest ChaoticTempest deleted the chore/supress-sandbox-bin-logs branch March 4, 2022 21:28
@frol frol mentioned this pull request Oct 4, 2023
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.

4 participants