Last active
August 29, 2015 14:28
-
-
Save emmaguy/28d91fddf5c9a0d0c434 to your computer and use it in GitHub Desktop.
RxJava debug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RxJavaPlugins.getInstance().registerObservableExecutionHook(new DebugHook(new DebugNotificationListener() { | |
public Object onNext(DebugNotification n) { | |
Timber.v("onNext on " + n); | |
return super.onNext(n); | |
} | |
public Object start(DebugNotification n) { | |
Timber.v("start on " + n); | |
return super.start(n); | |
} | |
public void complete(Object context) { | |
super.complete(context); | |
Timber.v("onNext on " + context); | |
} | |
public void error(Object context, Throwable e) { | |
super.error(context, e); | |
Timber.v("error on " + context); | |
} | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment