mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Crash handlers: use more compact string representation
This commit is contained in:
parent
710cd7287f
commit
7d3885d05c
@ -758,9 +758,8 @@ 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"
|
ofs << "Caught SIGABRT.\n"
|
||||||
<< "Current time: " << Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", Utility::GetTime()) << "\n"
|
<< "Current time: " << Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", Utility::GetTime()) << "\n\n";
|
||||||
<< "\n";
|
|
||||||
|
|
||||||
DisplayInfoMessage(ofs);
|
DisplayInfoMessage(ofs);
|
||||||
|
|
||||||
@ -867,9 +866,8 @@ void Application::ExceptionHandler()
|
|||||||
std::ofstream ofs;
|
std::ofstream ofs;
|
||||||
ofs.open(fname.CStr());
|
ofs.open(fname.CStr());
|
||||||
|
|
||||||
ofs << "Caught unhandled exception." << "\n"
|
ofs << "Caught unhandled exception.\n"
|
||||||
<< "Current time: " << Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", Utility::GetTime()) << "\n"
|
<< "Current time: " << Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", Utility::GetTime()) << "\n\n";
|
||||||
<< "\n";
|
|
||||||
|
|
||||||
DisplayInfoMessage(ofs);
|
DisplayInfoMessage(ofs);
|
||||||
|
|
||||||
@ -943,9 +941,8 @@ LONG CALLBACK Application::SEHUnhandledExceptionFilter(PEXCEPTION_POINTERS exi)
|
|||||||
Log(LogCritical, "Application")
|
Log(LogCritical, "Application")
|
||||||
<< "Icinga 2 has terminated unexpectedly. Additional information can be found in '" << fname << "'";
|
<< "Icinga 2 has terminated unexpectedly. Additional information can be found in '" << fname << "'";
|
||||||
|
|
||||||
ofs << "Caught unhandled SEH exception." << "\n"
|
ofs << "Caught unhandled SEH exception.\n"
|
||||||
<< "Current time: " << Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", Utility::GetTime()) << "\n"
|
<< "Current time: " << Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", Utility::GetTime()) << "\n\n";
|
||||||
<< "\n";
|
|
||||||
|
|
||||||
DisplayInfoMessage(ofs);
|
DisplayInfoMessage(ofs);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user