From 248b3e2d3086a90352787e14de5de0c1718b5db5 Mon Sep 17 00:00:00 2001 From: Stephen Miller <56742918+StevenMiller123@users.noreply.github.com> Date: Sat, 21 Feb 2026 01:53:28 -0600 Subject: [PATCH] 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 --- src/common/logging/backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index 9b7ea9cd1..930b1ac30 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp @@ -70,7 +70,7 @@ public: ~FileBackend() = default; void Write(const Entry& entry) { - if (!enabled) { + if (!enabled && entry.log_level != Level::Critical) { return; }