mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +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
@@ -21,6 +21,7 @@
|
||||
#define RIPPLE_WEBSOCKET_SERVER_H_INCLUDED
|
||||
|
||||
#include <ripple/basics/Log.h>
|
||||
#include <ripple/core/ReportUncaughtException.h>
|
||||
#include <ripple/websocket/WebSocket.h>
|
||||
#include <ripple/beast/core/Thread.h>
|
||||
#include <condition_variable>
|
||||
@@ -58,6 +59,12 @@ public:
|
||||
|
||||
private:
|
||||
void run ()
|
||||
{
|
||||
reportUncaughtException (
|
||||
this, &Server::runImpl, "Server<WebSocket>::run()");
|
||||
}
|
||||
|
||||
void runImpl ()
|
||||
{
|
||||
beast::Thread::setCurrentThreadName ("WebSocket");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user