Debug log

This commit is contained in:
M66B 2022-04-22 15:58:06 +02:00
parent 7fa99dc0a7
commit 95e12d3d26
1 changed files with 1 additions and 0 deletions

View File

@ -147,6 +147,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
LifecycleObserver watcher = new LifecycleObserver() {
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
public void onDestroy() {
EntityLog.log(context, EntityLog.Type.Debug, "Cancelling task=" + name);
cancel(context);
owner.getLifecycle().removeObserver(this);
}