From 8b67e4a637d31e43532ec6e018138ee252df43a5 Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Wed, 14 Oct 2020 17:57:17 +0200 Subject: [PATCH] Move error message and time to the beginning of the SEH crash log This is more similar to the normal exception crashlog which also states the problem and time at the beginning of the file. --- lib/base/application.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/base/application.cpp b/lib/base/application.cpp index 7a5728c0d..7b92fdbf4 100644 --- a/lib/base/application.cpp +++ b/lib/base/application.cpp @@ -931,12 +931,12 @@ LONG CALLBACK Application::SEHUnhandledExceptionFilter(PEXCEPTION_POINTERS exi) Log(LogCritical, "Application") << "Icinga 2 has terminated unexpectedly. Additional information can be found in '" << fname << "'"; - DisplayInfoMessage(ofs); - ofs << "Caught unhandled SEH exception." << "\n" << "Current time: " << Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", Utility::GetTime()) << "\n" << "\n"; + DisplayInfoMessage(ofs); + ofs << "Stacktrace:\n" << boost::stacktrace::stacktrace() << "\n";