Create a class for deferred error logging (#390)

## Link to GitHub Issue, if one exists
#388 

## Description of change
Instead of setting flags in `signal` and logging when we crash, create a
class for logging deferred semi-fatal messages, and dump them to the log
immediately before crashing or shutting down.

## Testing
Tested each failure case by injection.
This commit is contained in:
bicarus-dev authored and GitHub committed 2025-10-02 18:42:49 -07:00
1 parent afbe013811
commit 32801319fa
10 files changed
+97 -74

No files matched your search

+1
View File
@@ -611,6 +611,7 @@ set(SOURCE_FILES ${SOURCE_FILES}
util/tapeled.cpp
util/execexe.cpp
util/dependencies.cpp
util/deferlog.cpp
)
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} PREFIX "Source Files" FILES ${SOURCE_FILES})