Debug logging

pull/215/head
M66B 4 months ago
parent d24a973257
commit bf9e2006df

@ -206,7 +206,7 @@ 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, EntityLog.log(this, EntityLog.Type.Debug3,
"onCreate class=" + this.getClass().getName()); "onCreate class=" + this.getClass().getName());
} catch (Throwable ex) { } catch (Throwable ex) {
if (Helper.isPlayStoreInstall()) if (Helper.isPlayStoreInstall())
@ -1042,7 +1042,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
@Override @Override
public void onDestroy() { public void onDestroy() {
EntityLog.log(this, "Service destroy"); EntityLog.log(this, EntityLog.Type.Debug3,
"Service destroy class=" + this.getClass().getName());
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
prefs.unregisterOnSharedPreferenceChangeListener(this); prefs.unregisterOnSharedPreferenceChangeListener(this);
@ -3547,6 +3548,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
} }
static void state(Context context, boolean foreground) { static void state(Context context, boolean foreground) {
EntityLog.log(context, EntityLog.Type.Debug3, "Foreground=" + foreground);
start(context, start(context,
new Intent(context, ServiceSynchronize.class) new Intent(context, ServiceSynchronize.class)
.setAction("state") .setAction("state")

Loading…
Cancel
Save