From da29c913ea42f8a770c2f88be8d2a039a09853e8 Mon Sep 17 00:00:00 2001 From: DHD2280 Date: Fri, 13 Dec 2024 14:00:51 +0100 Subject: [PATCH] XposedMods: improved throwable log handling Signed-off-by: DHD2280 --- .../main/java/it/dhd/oxygencustomizer/xposed/XposedMods.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/it/dhd/oxygencustomizer/xposed/XposedMods.java b/app/src/main/java/it/dhd/oxygencustomizer/xposed/XposedMods.java index 8d798feb9..43bdb3d9e 100644 --- a/app/src/main/java/it/dhd/oxygencustomizer/xposed/XposedMods.java +++ b/app/src/main/java/it/dhd/oxygencustomizer/xposed/XposedMods.java @@ -2,6 +2,8 @@ import android.content.Context; +import java.util.Arrays; + import de.robv.android.xposed.XposedBridge; import de.robv.android.xposed.callbacks.XC_LoadPackage; @@ -26,7 +28,7 @@ public void log(String message) { } public void log(Throwable throwable) { - XposedBridge.log("[ Oxygen Customizer - " + getClass().getSimpleName() + " ] ERROR:" + throwable.getMessage()); + XposedBridge.log("[ Oxygen Customizer - " + getClass().getSimpleName() + " ] ERROR:" + throwable + " \n " + throwable.getMessage() + " \n " + Arrays.toString(throwable.getStackTrace())); } }