mirror of https://github.com/M66B/FairEmail.git
onTimeout logging
This commit is contained in:
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…
Reference in New Issue