mirror of https://github.com/M66B/FairEmail.git
Fixed Bugsnag error log
This commit is contained in:
parent
0a1e84dffe
commit
409d18a8cd
|
@ -304,9 +304,6 @@ public class Log {
|
|||
try {
|
||||
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]));
|
||||
Bugsnag.notify(ex, new OnErrorCallback() {
|
||||
@Override
|
||||
public boolean onError(@NonNull Event event) {
|
||||
|
|
|
@ -70,13 +70,13 @@ public class ThrowableWrapper extends Throwable {
|
|||
@Nullable
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return ex.getMessage();
|
||||
return getSafeMessage();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
public String getLocalizedMessage() {
|
||||
return ex.getLocalizedMessage();
|
||||
return getSafeMessage();
|
||||
}
|
||||
|
||||
@NonNull
|
||||
|
@ -94,6 +94,6 @@ public class ThrowableWrapper extends Throwable {
|
|||
@NonNull
|
||||
@Override
|
||||
public String toString() {
|
||||
return ex.toString();
|
||||
return toSafeString();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue