Debug: added logging

pull/215/head
M66B 7 months ago
parent 5a65365f2c
commit 00ab42f973

@ -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…
Cancel
Save