From a77c37da8ec423ed24fe349a36230b445ebd5d1e 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 158bea0b6..f242b8c98 100644 --- a/lib/base/application.cpp +++ b/lib/base/application.cpp @@ -927,12 +927,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";