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

Closes #1303
This commit is contained in:
Andreas Maerten 2023-05-02 00:07:36 +02:00 committed by GitHub
parent 71892a6fa7
commit 10ebcbbdaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 12 deletions

View File

@ -4,7 +4,7 @@ message("AsyncLogger")
FetchContent_Declare(
AsyncLogger
GIT_REPOSITORY https://github.com/Yimura/AsyncLogger.git
GIT_TAG v0.0.5
GIT_TAG v0.0.6
GIT_PROGRESS TRUE
)
FetchContent_MakeAvailable(AsyncLogger)

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);
}