feat(ExceptionHandler): Force logs syncronously (#1317)

Closes #1303
This commit is contained in:
Andreas Maerten authored and GitHub committed 2023-05-01 23:07:36 +01:00
1 parent c9fc44e06b
commit 61cd1c2a85
2 files changed
+13 -12

No files matched your search

+12 -12
View File
@@ -1,12 +1,12 @@
include(FetchContent)
message("AsyncLogger")
FetchContent_Declare(
AsyncLogger
GIT_REPOSITORY https://github.com/Yimura/AsyncLogger.git
GIT_TAG v0.0.5
GIT_PROGRESS TRUE
)
FetchContent_MakeAvailable(AsyncLogger)
set_property(TARGET AsyncLogger PROPERTY CXX_STANDARD 23)
include(FetchContent)
message("AsyncLogger")
FetchContent_Declare(
AsyncLogger
GIT_REPOSITORY https://github.com/Yimura/AsyncLogger.git
GIT_TAG v0.0.6
GIT_PROGRESS TRUE
)
FetchContent_MakeAvailable(AsyncLogger)
set_property(TARGET AsyncLogger PROPERTY CXX_STANDARD 23)
+1
View File
@@ -40,6 +40,7 @@ namespace big
if (const auto it = logged_exceptions.find(trace_hash); it == logged_exceptions.end())
{
LOG(FATAL) << trace;
Logger::FlushQueue();
logged_exceptions.insert(trace_hash);
}