Skip to content

Commit

Permalink
XposedMods: improved throwable log handling
Browse files Browse the repository at this point in the history
Signed-off-by: DHD2280 <[email protected]>
  • Loading branch information
DHD2280 committed Dec 13, 2024
1 parent c9c73de commit da29c91
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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()));
}

}

0 comments on commit da29c91

Please sign in to comment.