Log service life cycle

This commit is contained in:
M66B
2019-08-17 13:06:57 +02:00
parent ed31533462
commit 69d66bbc7b
2 changed files with 3 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ public class ServiceSend extends ServiceBase {
@Override
public void onCreate() {
Log.i("Service send create");
EntityLog.log(this, "Service send create");
super.onCreate();
startForeground(Helper.NOTIFICATION_SEND, getNotificationService(null, null).build());
@@ -220,7 +220,7 @@ public class ServiceSend extends ServiceBase {
@Override
public void onDestroy() {
Log.i("Service send destroy");
EntityLog.log(this, "Service send destroy");
ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
cm.unregisterNetworkCallback(networkCallback);

View File

@@ -115,7 +115,7 @@ public class ServiceSynchronize extends ServiceBase {
@Override
public void onCreate() {
Log.i("Service create version=" + BuildConfig.VERSION_NAME);
EntityLog.log(this, "Service create version=" + BuildConfig.VERSION_NAME);
super.onCreate();
startForeground(Helper.NOTIFICATION_SYNCHRONIZE, getNotificationService(null).build());