Browse Source

sync debug log just if data receivces

Julien Clauter 10 years ago
parent
commit
1501e1efb6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/de/tudarmstadt/informatik/hostage/sync/Synchronizer.java

+ 2 - 1
src/de/tudarmstadt/informatik/hostage/sync/Synchronizer.java

@@ -121,7 +121,8 @@ public class Synchronizer {
             ArrayList<SyncDevice> otherDevices = new ArrayList<SyncDevice>();
             ArrayList<String> ownDevicesds = this.dbh.getAllDevicesIds();
 
-            Log.i("DEBUG_Sync", "Updating Devices: " + otherDevices.size());
+            if (otherDeviceIds.size() > 0)
+                Log.i("DEBUG_Sync", "Updating Devices: " + otherDevices.size());
 
             ArrayList<String> n = this.diffArray(otherDeviceIds, ownDevicesds);
             for (String deviceId : n){