onTimeout logging

pull/215/head
M66B 8 months ago
parent 4d27446860
commit b1d0aa4ec6

@ -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

@ -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

@ -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) {

Loading…
Cancel
Save