mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Use boost::stacktrace instead of custom implementation in Windows SEH filter
This commit is contained in:
parent
f8b7a1511b
commit
0db59bad83
@ -19,6 +19,7 @@
|
||||
#include <boost/exception/errinfo_api_function.hpp>
|
||||
#include <boost/exception/errinfo_errno.hpp>
|
||||
#include <boost/exception/errinfo_file_name.hpp>
|
||||
#include <boost/stacktrace.hpp>
|
||||
#include <sstream>
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
@ -936,9 +937,9 @@ LONG CALLBACK Application::SEHUnhandledExceptionFilter(PEXCEPTION_POINTERS exi)
|
||||
<< "Current time: " << Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", Utility::GetTime()) << "\n"
|
||||
<< "\n";
|
||||
|
||||
StackTrace trace(exi);
|
||||
ofs << "Stacktrace:" << "\n";
|
||||
trace.Print(ofs, 1);
|
||||
ofs << "Stacktrace:\n"
|
||||
<< boost::stacktrace::stacktrace()
|
||||
<< "\n";
|
||||
|
||||
DisplayBugMessage(ofs);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user