mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 01:06:11 +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();
|
super.onCreate();
|
||||||
try {
|
try {
|
||||||
startForeground(NotificationHelper.NOTIFICATION_EXTERNAL, getNotification());
|
startForeground(NotificationHelper.NOTIFICATION_EXTERNAL, getNotification());
|
||||||
|
EntityLog.log(this, EntityLog.Type.Debug2,
|
||||||
|
"onCreate class=" + this.getClass().getName());
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
if (Helper.isPlayStoreInstall())
|
if (Helper.isPlayStoreInstall())
|
||||||
Log.i(ex);
|
Log.i(ex);
|
||||||
|
@ -106,6 +108,8 @@ public class ServiceExternal extends ServiceBase {
|
||||||
super.onStartCommand(intent, flags, startId);
|
super.onStartCommand(intent, flags, startId);
|
||||||
try {
|
try {
|
||||||
startForeground(NotificationHelper.NOTIFICATION_EXTERNAL, getNotification());
|
startForeground(NotificationHelper.NOTIFICATION_EXTERNAL, getNotification());
|
||||||
|
EntityLog.log(this, EntityLog.Type.Debug2,
|
||||||
|
"onStartCommand class=" + this.getClass().getName());
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
if (Helper.isPlayStoreInstall())
|
if (Helper.isPlayStoreInstall())
|
||||||
Log.i(ex);
|
Log.i(ex);
|
||||||
|
|
|
@ -108,6 +108,8 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
||||||
super.onCreate();
|
super.onCreate();
|
||||||
try {
|
try {
|
||||||
startForeground(NotificationHelper.NOTIFICATION_SEND, getNotificationService(false));
|
startForeground(NotificationHelper.NOTIFICATION_SEND, getNotificationService(false));
|
||||||
|
EntityLog.log(this, EntityLog.Type.Debug2,
|
||||||
|
"onCreate class=" + this.getClass().getName());
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
if (Helper.isPlayStoreInstall())
|
if (Helper.isPlayStoreInstall())
|
||||||
Log.i(ex);
|
Log.i(ex);
|
||||||
|
@ -255,6 +257,8 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
||||||
super.onStartCommand(intent, flags, startId);
|
super.onStartCommand(intent, flags, startId);
|
||||||
try {
|
try {
|
||||||
startForeground(NotificationHelper.NOTIFICATION_SEND, getNotificationService(false));
|
startForeground(NotificationHelper.NOTIFICATION_SEND, getNotificationService(false));
|
||||||
|
EntityLog.log(this, EntityLog.Type.Debug2,
|
||||||
|
"onStartCommand class=" + this.getClass().getName());
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
if (Helper.isPlayStoreInstall())
|
if (Helper.isPlayStoreInstall())
|
||||||
Log.i(ex);
|
Log.i(ex);
|
||||||
|
|
|
@ -205,6 +205,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
try {
|
try {
|
||||||
startForeground(NotificationHelper.NOTIFICATION_SYNCHRONIZE,
|
startForeground(NotificationHelper.NOTIFICATION_SYNCHRONIZE,
|
||||||
getNotificationService(null, null));
|
getNotificationService(null, null));
|
||||||
|
EntityLog.log(this, EntityLog.Type.Debug2,
|
||||||
|
"onCreate class=" + this.getClass().getName());
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
if (Helper.isPlayStoreInstall())
|
if (Helper.isPlayStoreInstall())
|
||||||
Log.i(ex);
|
Log.i(ex);
|
||||||
|
@ -1120,6 +1122,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||||
try {
|
try {
|
||||||
startForeground(NotificationHelper.NOTIFICATION_SYNCHRONIZE,
|
startForeground(NotificationHelper.NOTIFICATION_SYNCHRONIZE,
|
||||||
getNotificationService(null, null));
|
getNotificationService(null, null));
|
||||||
|
String msg = "onStartCommand" +
|
||||||
|
" class=" + this.getClass().getName() +
|
||||||
|
" action=" + action;
|
||||||
|
EntityLog.log(this, EntityLog.Type.Debug2, msg);
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
if (Helper.isPlayStoreInstall())
|
if (Helper.isPlayStoreInstall())
|
||||||
Log.i(ex);
|
Log.i(ex);
|
||||||
|
|
Loading…
Reference in a new issue