Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@joshafeinberg
Created April 26, 2017 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshafeinberg/08dac2520f09b25c1964ef5ce2d607e8 to your computer and use it in GitHub Desktop.
Save joshafeinberg/08dac2520f09b25c1964ef5ce2d607e8 to your computer and use it in GitHub Desktop.
class CrashTree extends Timber.Tree {
@Override
protected void log(int priority, String tag, String message, Throwable t) {
if (t != null && priority == Log.ERROR) {
throw new RuntimeException(t);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment