onTimeout logging

This commit is contained in:
M66B
2024-05-15 20:44:52 +02:00
parent 4d27446860
commit b1d0aa4ec6
3 changed files with 18 additions and 3 deletions

View File

@@ -81,7 +81,12 @@ public class ServiceExternal extends ServiceBase {
@Override
public void onTimeout(int startId) {
Log.e(new Throwable("onTimeout"));
String msg = "onTimeout" +
" class=" + this.getClass().getName() +
" ignoring=" + Helper.isIgnoringOptimizations(this);
Log.e(new Throwable(msg));
EntityLog.log(this, EntityLog.Type.Debug3, msg);
stopSelf();
}
@Override