mirror of https://github.com/Icinga/icinga2.git
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.
This commit is contained in:
parent
0db59bad83
commit
68e4b807d1
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue