mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 09:16:00 +00:00
Debug logging
This commit is contained in:
parent
d24a973257
commit
bf9e2006df
1 changed files with 4 additions and 2 deletions
|
@ -206,7 +206,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
try {
|
||||
startForeground(NotificationHelper.NOTIFICATION_SYNCHRONIZE,
|
||||
getNotificationService(null, null));
|
||||
EntityLog.log(this, EntityLog.Type.Debug2,
|
||||
EntityLog.log(this, EntityLog.Type.Debug3,
|
||||
"onCreate class=" + this.getClass().getName());
|
||||
} catch (Throwable ex) {
|
||||
if (Helper.isPlayStoreInstall())
|
||||
|
@ -1042,7 +1042,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
|
||||
@Override
|
||||
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);
|
||||
prefs.unregisterOnSharedPreferenceChangeListener(this);
|
||||
|
@ -3547,6 +3548,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
}
|
||||
|
||||
static void state(Context context, boolean foreground) {
|
||||
EntityLog.log(context, EntityLog.Type.Debug3, "Foreground=" + foreground);
|
||||
start(context,
|
||||
new Intent(context, ServiceSynchronize.class)
|
||||
.setAction("state")
|
||||
|
|
Loading…
Reference in a new issue