Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
logging: Set panic_mode flag after flushing in log_panic
In case log_panic is called from context which can be interrupted, it is safer to set panic_mode flag after logs are flushed. If flag was set before flushing and log_panic was interrupted then another context was attempting to process log message directly, competing for log backends. Signed-off-by: Krzysztof Chruscinski <[email protected]>
- Loading branch information