From 2352699c6598866548b81c3886337b4a8bb91472 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sat, 26 May 2018 16:17:12 -1000 Subject: [PATCH] Force console logger registration on Fatal --- include/logvisor/logvisor.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/logvisor/logvisor.hpp b/include/logvisor/logvisor.hpp index 4a55bf8..ab826a3 100644 --- a/include/logvisor/logvisor.hpp +++ b/include/logvisor/logvisor.hpp @@ -204,6 +204,8 @@ public: { auto lk = LockLog(); ++_LogCounter; + if (severity == Fatal) + RegisterConsoleLogger(); for (auto& logger : MainLoggers) { va_list apc; @@ -242,6 +244,8 @@ public: { auto lk = LockLog(); ++_LogCounter; + if (severity == Fatal) + RegisterConsoleLogger(); for (auto& logger : MainLoggers) { va_list apc;