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

View File

@ -211,7 +211,12 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
@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

View File

@ -1194,7 +1194,12 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
@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();
}
private void onEnable(Intent intent) {