Reduce error reporting

pull/156/head
M66B 6 years ago
parent f917ebe1b4
commit 1764c52b2d

@ -60,7 +60,7 @@ public class FixedRecyclerView extends RecyclerView {
at androidx.recyclerview.widget.RecyclerView.dispatchOnItemTouch(SourceFile:2947) at androidx.recyclerview.widget.RecyclerView.dispatchOnItemTouch(SourceFile:2947)
at androidx.recyclerview.widget.RecyclerView.onTouchEvent(SourceFile:3090) at androidx.recyclerview.widget.RecyclerView.onTouchEvent(SourceFile:3090)
*/ */
Log.w(ex); Log.i(ex);
return false; return false;
} catch (NullPointerException ex) { } catch (NullPointerException ex) {
/* /*

@ -80,6 +80,10 @@ public class Log {
return android.util.Log.e(TAG, msg); return android.util.Log.e(TAG, msg);
} }
public static int i(Throwable ex) {
return android.util.Log.w(TAG, ex + "\n" + android.util.Log.getStackTraceString(ex));
}
public static int w(Throwable ex) { public static int w(Throwable ex) {
Bugsnag.notify(ex, Severity.INFO); Bugsnag.notify(ex, Severity.INFO);
return android.util.Log.w(TAG, ex + "\n" + android.util.Log.getStackTraceString(ex)); return android.util.Log.w(TAG, ex + "\n" + android.util.Log.getStackTraceString(ex));

Loading…
Cancel
Save