Core: Force logging of critical errors (#4061)

* Ignore enabled flag on critical log entries

This ensures critical errors (asserts and unreachables) are logged when the log file exceeds 100MB, or when logging is disabled.

* I apparently need sleep
This commit is contained in:
Stephen Miller 2026-02-21 01:53:28 -06:00 committed by GitHub
parent 1eb09ab440
commit 248b3e2d30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,7 +70,7 @@ public:
~FileBackend() = default;
void Write(const Entry& entry) {
if (!enabled) {
if (!enabled && entry.log_level != Level::Critical) {
return;
}