Refactoring

This commit is contained in:
M66B
2023-12-12 14:09:21 +01:00
parent 1815e3f2bc
commit 4e822c6fe2
2 changed files with 8 additions and 5 deletions

View File

@@ -298,7 +298,8 @@ public class Log {
public static int e(String msg) {
if (BuildConfig.BETA_RELEASE)
try {
Throwable ex = new ThrowableWrapper(msg); // TODO CASA
ThrowableWrapper ex = new ThrowableWrapper();
ex.setMessage(msg);
List<StackTraceElement> ss = new ArrayList<>(Arrays.asList(ex.getStackTrace()));
ss.remove(0);
ex.setStackTrace(ss.toArray(new StackTraceElement[0]));