Add logging to verify when LoaderTask is stopped or cancelled

Flag: EXEMPT just logging
Test: Presubmit
Bug: 377510898
Change-Id: Ie97adc07ed995af8b09eab232fcce9431bea42d5
This commit is contained in:
Charlie Anderson committed 2024-12-04 15:56:43 -05:00
1 parent a2603e829a
commit 8d76114fe3
1 file changed
+2 -1
@@ -389,7 +389,7 @@ public class LoaderTask implements Runnable {
}
} catch (CancellationException e) {
// Loader stopped, ignore
logASplit("Cancelled");
FileLog.w(TAG, "LoaderTask cancelled:", e);
} catch (Exception e) {
memoryLogger.printLogs();
throw e;
@@ -398,6 +398,7 @@ public class LoaderTask implements Runnable {
}
public synchronized void stopLocked() {
FileLog.w(TAG, "LoaderTask#stopLocked:", new Exception());
mStopped = true;
this.notify();
}