diff options
| author | Dan Engelbrecht <[email protected]> | 2024-05-03 15:09:35 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-05-03 15:09:35 +0200 |
| commit | 75b91b3f2eb21332a35255eae3c523ad2d2e9bc7 (patch) | |
| tree | d0db8b85af12bff7acbfe8a8e091169e89307b8b /src/zencore/logging.cpp | |
| parent | 5.5.1 (diff) | |
| download | zen-75b91b3f2eb21332a35255eae3c523ad2d2e9bc7.tar.xz zen-75b91b3f2eb21332a35255eae3c523ad2d2e9bc7.zip | |
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
Diffstat (limited to 'src/zencore/logging.cpp')
| -rw-r--r-- | src/zencore/logging.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 { |