Skip to content

Commit

Permalink
added isActivityThread message to callbackexception issue #18
Browse files Browse the repository at this point in the history
  • Loading branch information
ftc committed Jan 6, 2017
1 parent 2d04198 commit d46bf23
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public static void logException(Throwable t, String signature, String methodName
public static void logCallbackException(Throwable t, String signature, String methodName){
int id = count.getAndIncrement();
String message = t.getMessage();
boolean isActivityThread = Looper.getMainLooper().getThread() == Thread.currentThread();
StackTraceElement[] stackTrace = t.getStackTrace();
String className = stackTrace[0].getClassName();
TraceMsgContainer.CallbackExceptionMsg.Builder builder
Expand All @@ -98,6 +99,7 @@ public static void logCallbackException(Throwable t, String signature, String me
.setMessageId(id)
.setThreadId(Thread.currentThread().getId())
.setCallbackException(builder)
.setIsActivityThread(isActivityThread)
.build();
TraceMsgContainer container = TraceMsgContainer.newBuilder().setMsg(msg).build();
executorService.execute(new LogDat(container));
Expand Down

0 comments on commit d46bf23

Please sign in to comment.