Browse Source

Remove the explicit logging

pull/5063/head
Andrii Shvaika 5 years ago
parent
commit
79034ddcdd
  1. 4
      application/src/main/java/org/thingsboard/server/service/state/DefaultDeviceStateService.java

4
application/src/main/java/org/thingsboard/server/service/state/DefaultDeviceStateService.java

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

Loading…
Cancel
Save