mirror of https://github.com/Icinga/icinga2.git
Begin crash log for SIGABRT with error message and timestamp
This makes the format more similar to what the uncaught C++ and SEH exception handlers write. Previously there was no indication in the crash log that a SIGABRT happened.
This commit is contained in:
parent
f084cdecbe
commit
710cd7287f
|
@ -758,6 +758,10 @@ void Application::SigAbrtHandler(int)
|
||||||
Log(LogCritical, "Application")
|
Log(LogCritical, "Application")
|
||||||
<< "Icinga 2 has terminated unexpectedly. Additional information can be found in '" << fname << "'" << "\n";
|
<< "Icinga 2 has terminated unexpectedly. Additional information can be found in '" << fname << "'" << "\n";
|
||||||
|
|
||||||
|
ofs << "Caught SIGABRT." << "\n"
|
||||||
|
<< "Current time: " << Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", Utility::GetTime()) << "\n"
|
||||||
|
<< "\n";
|
||||||
|
|
||||||
DisplayInfoMessage(ofs);
|
DisplayInfoMessage(ofs);
|
||||||
|
|
||||||
ofs << "\nStacktrace:\n" << boost::stacktrace::stacktrace() << "\n";
|
ofs << "\nStacktrace:\n" << boost::stacktrace::stacktrace() << "\n";
|
||||||
|
|
Loading…
Reference in New Issue