Added exception type to the crash log, which was previously unavailable.

The log in the crash handler now contains what kind of exception is being handled by the handler.
This commit is contained in:
Jan Christian Grünhage 2017-01-01 19:37:12 +01:00
parent 51d0ed4c7e
commit 87a80b4dd7
No known key found for this signature in database
GPG key ID: 62BEE5EB8F370DC6

View file

@ -77,6 +77,7 @@ public class CrashHandler implements Thread.UncaughtExceptionHandler {
logBuilder.append("----------- Exception ------------\n");
logBuilder.append(ex.getMessage()).append("\n");
logBuilder.append(ex.getClass().getCanonicalName()).append(" at \n");
// Log stack trace
for (StackTraceElement stackTraceElement : ex.getStackTrace())