From 6e6260f11dc7c3dd7336c5aa12821abf4ffb3b0e Mon Sep 17 00:00:00 2001 From: Kshitij Chauhan Date: Fri, 18 Mar 2022 17:51:33 +0530 Subject: [PATCH 1/2] fix: Print every exception before sending it across IPC --- .../haroldadmin/whatthestack/WhatTheStackExceptionHandler.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/what-the-stack/src/main/java/com/haroldadmin/whatthestack/WhatTheStackExceptionHandler.kt b/what-the-stack/src/main/java/com/haroldadmin/whatthestack/WhatTheStackExceptionHandler.kt index 496de4f..24b572f 100644 --- a/what-the-stack/src/main/java/com/haroldadmin/whatthestack/WhatTheStackExceptionHandler.kt +++ b/what-the-stack/src/main/java/com/haroldadmin/whatthestack/WhatTheStackExceptionHandler.kt @@ -2,6 +2,7 @@ package com.haroldadmin.whatthestack import android.os.Message import android.os.Messenger +import android.util.Log import androidx.core.os.bundleOf /** @@ -19,6 +20,7 @@ internal class WhatTheStackExceptionHandler( private val defaultHandler: Thread.UncaughtExceptionHandler?, ) : Thread.UncaughtExceptionHandler { override fun uncaughtException(t: Thread, e: Throwable) { + e.printStackTrace() val exceptionData = e.process() serviceMessenger.send( Message().apply { From b137c2d0dee0d287ad067c71ff59e367c1d52f11 Mon Sep 17 00:00:00 2001 From: Kshitij Chauhan Date: Fri, 18 Mar 2022 18:01:17 +0530 Subject: [PATCH 2/2] fix: Remove unused import --- .../com/haroldadmin/whatthestack/WhatTheStackExceptionHandler.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/what-the-stack/src/main/java/com/haroldadmin/whatthestack/WhatTheStackExceptionHandler.kt b/what-the-stack/src/main/java/com/haroldadmin/whatthestack/WhatTheStackExceptionHandler.kt index 24b572f..c3b7353 100644 --- a/what-the-stack/src/main/java/com/haroldadmin/whatthestack/WhatTheStackExceptionHandler.kt +++ b/what-the-stack/src/main/java/com/haroldadmin/whatthestack/WhatTheStackExceptionHandler.kt @@ -2,7 +2,6 @@ package com.haroldadmin.whatthestack import android.os.Message import android.os.Messenger -import android.util.Log import androidx.core.os.bundleOf /**