| 72 | |
| 73 | |
| 74 | static void EnsureLogInit() |
| 75 | { |
| 76 | bool expected = false; |
| 77 | if (g_logInitialized.compare_exchange_strong(expected, true)) |
| 78 | Log::Init(); |
| 79 | } |
| 80 | |
| 81 | // Quick JSON bool lookup for early-init config reads (before the full JSON |
| 82 | // parser is available). Returns defaultVal if the key is absent. |