Permalink
Browse files

debug

  • Loading branch information...
gegao committed Nov 19, 2013
1 parent 0a0be7d commit 5043fc5fa552416605fae344cbb6c5345121778c
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/frontend/edu/brown/hstore/HStoreSite.java
@@ -27,6 +27,8 @@
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
@@ -501,8 +503,11 @@ public void update(EventObservable<Pair<Thread, Throwable>> o, Pair<Thread, Thro
Throwable error = arg.getSecond();
String threadName = "<unknown>";
if (thread != null) threadName = thread.getName();
StringWriter errors = new StringWriter();
error.printStackTrace(new PrintWriter(errors));
LOG.fatal(String.format("Thread %s had a fatal error: %s",
threadName, (error != null ? error.getMessage() : null)));
LOG.info(errors.toString());
error.printStackTrace();
hstore_coordinator.shutdownClusterBlocking(error);
}

0 comments on commit 5043fc5

Please sign in to comment.