Commit 79034ddcdd580441bc1a46cdcda00bf25a813891

Authored by Andrii Shvaika
1 parent 5478d838

Remove the explicit logging

@@ -255,7 +255,7 @@ public class DefaultDeviceStateService extends TbApplicationEventListener<Partit @@ -255,7 +255,7 @@ public class DefaultDeviceStateService extends TbApplicationEventListener<Partit
255 save(deviceId, ACTIVITY_STATE, false); 255 save(deviceId, ACTIVITY_STATE, false);
256 callback.onSuccess(); 256 callback.onSuccess();
257 } else { 257 } else {
258 - log.warn("[{}][{}] Device belongs to external partition. Probably rebalancing is in progress. Topic: {}" 258 + log.debug("[{}][{}] Device belongs to external partition. Probably rebalancing is in progress. Topic: {}"
259 , tenantId, deviceId, tpi.getFullTopicName()); 259 , tenantId, deviceId, tpi.getFullTopicName());
260 callback.onFailure(new RuntimeException("Device belongs to external partition " + tpi.getFullTopicName() + "!")); 260 callback.onFailure(new RuntimeException("Device belongs to external partition " + tpi.getFullTopicName() + "!"));
261 } 261 }
@@ -440,7 +440,7 @@ public class DefaultDeviceStateService extends TbApplicationEventListener<Partit @@ -440,7 +440,7 @@ public class DefaultDeviceStateService extends TbApplicationEventListener<Partit
440 deviceIds.add(state.getDeviceId()); 440 deviceIds.add(state.getDeviceId());
441 deviceStates.put(state.getDeviceId(), state); 441 deviceStates.put(state.getDeviceId(), state);
442 } else { 442 } else {
443 - log.warn("Device belongs to external partition {}" + tpi.getFullTopicName()); 443 + log.debug("[{}] Device belongs to external partition {}", state.getDeviceId(), tpi.getFullTopicName());
444 throw new RuntimeException("Device belongs to external partition " + tpi.getFullTopicName() + "!"); 444 throw new RuntimeException("Device belongs to external partition " + tpi.getFullTopicName() + "!");
445 } 445 }
446 } 446 }