mirror of https://github.com/apache/cassandra
add defaultuncaughtexceptionhandler that logs runtime errors
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@758994 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
41598bfead
commit
2aa0bba0d5
|
|
@ -855,6 +855,14 @@ public class CassandraServer extends FacebookBase implements
|
|||
{
|
||||
int port = 9160;
|
||||
|
||||
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler()
|
||||
{
|
||||
public void uncaughtException(Thread t, Throwable e)
|
||||
{
|
||||
logger_.error("Fatal exception in thread " + t, e);
|
||||
}
|
||||
});
|
||||
|
||||
try
|
||||
{
|
||||
CassandraServer peerStorageServer = new CassandraServer();
|
||||
|
|
|
|||
Loading…
Reference in New Issue