diff --git a/app/src/main/java/eu/faircode/email/ServiceExternal.java b/app/src/main/java/eu/faircode/email/ServiceExternal.java index 6ac58a37bb..cdfc4a0059 100644 --- a/app/src/main/java/eu/faircode/email/ServiceExternal.java +++ b/app/src/main/java/eu/faircode/email/ServiceExternal.java @@ -71,6 +71,8 @@ public class ServiceExternal extends ServiceBase { super.onCreate(); try { startForeground(NotificationHelper.NOTIFICATION_EXTERNAL, getNotification()); + EntityLog.log(this, EntityLog.Type.Debug2, + "onCreate class=" + this.getClass().getName()); } catch (Throwable ex) { if (Helper.isPlayStoreInstall()) Log.i(ex); @@ -106,6 +108,8 @@ public class ServiceExternal extends ServiceBase { super.onStartCommand(intent, flags, startId); try { startForeground(NotificationHelper.NOTIFICATION_EXTERNAL, getNotification()); + EntityLog.log(this, EntityLog.Type.Debug2, + "onStartCommand class=" + this.getClass().getName()); } catch (Throwable ex) { if (Helper.isPlayStoreInstall()) Log.i(ex); diff --git a/app/src/main/java/eu/faircode/email/ServiceSend.java b/app/src/main/java/eu/faircode/email/ServiceSend.java index a041a4b242..81c4ad81d0 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSend.java +++ b/app/src/main/java/eu/faircode/email/ServiceSend.java @@ -108,6 +108,8 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar super.onCreate(); try { startForeground(NotificationHelper.NOTIFICATION_SEND, getNotificationService(false)); + EntityLog.log(this, EntityLog.Type.Debug2, + "onCreate class=" + this.getClass().getName()); } catch (Throwable ex) { if (Helper.isPlayStoreInstall()) Log.i(ex); @@ -255,6 +257,8 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar super.onStartCommand(intent, flags, startId); try { startForeground(NotificationHelper.NOTIFICATION_SEND, getNotificationService(false)); + EntityLog.log(this, EntityLog.Type.Debug2, + "onStartCommand class=" + this.getClass().getName()); } catch (Throwable ex) { if (Helper.isPlayStoreInstall()) Log.i(ex); diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index fe5377d223..82be8d53bb 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -205,6 +205,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences try { startForeground(NotificationHelper.NOTIFICATION_SYNCHRONIZE, getNotificationService(null, null)); + EntityLog.log(this, EntityLog.Type.Debug2, + "onCreate class=" + this.getClass().getName()); } catch (Throwable ex) { if (Helper.isPlayStoreInstall()) Log.i(ex); @@ -1120,6 +1122,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences try { startForeground(NotificationHelper.NOTIFICATION_SYNCHRONIZE, getNotificationService(null, null)); + String msg = "onStartCommand" + + " class=" + this.getClass().getName() + + " action=" + action; + EntityLog.log(this, EntityLog.Type.Debug2, msg); } catch (Throwable ex) { if (Helper.isPlayStoreInstall()) Log.i(ex);