mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-28 16:55:56 +00:00
Debug: added logging
This commit is contained in:
parent
5a65365f2c
commit
00ab42f973
3 changed files with 14 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue