Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
set_max_level_racy
and gate set_max_level
Calling `set_max_level` can result in a race condition on platforms that don't have an atomic compare and swap implementation. This gates `set_max_level` behind `#[cfg(atomic_cas)]` and adds a racy alternative that can be called in these situations. This mirrors the approach for `set_logger`.
- Loading branch information