mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-21 03:26:01 +00:00
Log uncaught exceptions at the top of threads (RIPD-1166)
This commit is contained in:
committed by
Nik Bougalis
parent
7295d7f4bb
commit
fdd1f2ec36
@@ -23,6 +23,7 @@
|
||||
#include <ripple/app/misc/NetworkOPs.h>
|
||||
#include <ripple/basics/UptimeTimer.h>
|
||||
#include <ripple/core/LoadFeeTrack.h>
|
||||
#include <ripple/core/ReportUncaughtException.h>
|
||||
#include <ripple/json/to_string.h>
|
||||
#include <ripple/beast/core/Thread.h>
|
||||
#include <memory>
|
||||
@@ -106,6 +107,11 @@ void LoadManager::onStop ()
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
void LoadManager::run ()
|
||||
{
|
||||
reportUncaughtException (this, &LoadManager::runImpl, "LoadManager::run()");
|
||||
}
|
||||
|
||||
void LoadManager::runImpl ()
|
||||
{
|
||||
beast::Thread::setCurrentThreadName ("LoadManager");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user