From 75b91b3f2eb21332a35255eae3c523ad2d2e9bc7 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Fri, 3 May 2024 15:09:35 +0200 Subject: assert improvements (#72) - Improvement: Asserts gives an immediate ERROR log entry with callstack and reason - Improvement: Asserts flushes the log before sending error report to Sentry --- src/zencore/logging.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/zencore/logging.cpp') diff --git a/src/zencore/logging.cpp b/src/zencore/logging.cpp index 90f4e2428..1a0a91b3d 100644 --- a/src/zencore/logging.cpp +++ b/src/zencore/logging.cpp @@ -392,6 +392,12 @@ EnableVTMode() return true; } +void +FlushLogging() +{ + spdlog::details::registry::instance().flush_all(); +} + } // namespace zen::logging namespace zen { -- cgit v1.2.3