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

Replace --strict flag with RERUN_PANIC_ON_WARN env-var #3872

Merged
merged 2 commits into from
Oct 16, 2023
Merged

Conversation

emilk
Copy link
Member

@emilk emilk commented Oct 16, 2023

--strict was an ill-chosen name, as it clashes with the SDK-side strict-modes for user errors.

By making it an environment variable it is now also works anywhere setup_native_logging is called.

Related

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested demo.rerun.io (if applicable)
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG

`--strict` was an ill-chosen name, as it clashes with the
SDK-side strict-modes for user errors.

By making it an environment variable it is now also works anywhere
`setup_native_logging` is called.
@emilk emilk added include in changelog 📺 re_viewer affects re_viewer itself labels Oct 16, 2023
@Wumpf Wumpf self-requested a review October 16, 2023 15:05
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

positively surprised this passes the roundtrips 😄

// ----------------------------------------------------------------------------

#[cfg(not(target_arch = "wasm32"))]
fn env_var_bool(name: &str) -> Option<bool> {
Copy link
Member

Choose a reason for hiding this comment

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

I could swear I've seen this snippet several times over in the codebase, but can't find other instances right now

@Wumpf Wumpf merged commit 9a4d833 into main Oct 16, 2023
30 checks passed
@Wumpf Wumpf deleted the emilk/panic-on-warn branch October 16, 2023 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants