mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-28 04:42:10 +01:00
Core/Debugging: Added wheaty everywhere and modified it to always reliably report issues during static initialization
This commit is contained in:
@@ -18,8 +18,6 @@ endif()
|
||||
|
||||
if(WIN32)
|
||||
set(sources_windows
|
||||
${CMAKE_SOURCE_DIR}/src/common/Debugging/WheatyExceptionReport.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/common/Debugging/WheatyExceptionReport.h
|
||||
${CMAKE_SOURCE_DIR}/src/common/Platform/ServiceWin32.cpp
|
||||
${CMAKE_SOURCE_DIR}/src/common/Platform/ServiceWin32.h
|
||||
)
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
#include "SslContext.h"
|
||||
#include "DatabaseLoader.h"
|
||||
#include "LoginRESTService.h"
|
||||
#include "WheatyExceptionReport.h"
|
||||
#include <iostream>
|
||||
#include <boost/program_options.hpp>
|
||||
#include <boost/filesystem/path.hpp>
|
||||
@@ -77,6 +78,7 @@ static uint32 _banExpiryCheckInterval;
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
InitializeCrashHandler();
|
||||
signal(SIGABRT, &Trinity::AbortHandler);
|
||||
|
||||
auto configFile = fs::absolute(_TRINITY_BNET_CONFIG);
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
#include "DatabaseLoader.h"
|
||||
#include "AppenderDB.h"
|
||||
#include "Metric.h"
|
||||
#include "WheatyExceptionReport.h"
|
||||
#include <openssl/opensslv.h>
|
||||
#include <openssl/crypto.h>
|
||||
#include <boost/asio/io_service.hpp>
|
||||
@@ -99,6 +100,7 @@ variables_map GetConsoleArguments(int argc, char** argv, fs::path& configFile, s
|
||||
/// Launch the Trinity server
|
||||
extern int main(int argc, char** argv)
|
||||
{
|
||||
InitializeCrashHandler();
|
||||
signal(SIGABRT, &Trinity::AbortHandler);
|
||||
|
||||
auto configFile = fs::absolute(_TRINITY_CORE_CONFIG);
|
||||
|
||||
Reference in New Issue
Block a user