Fixed logging of the device state service partitions
This commit is contained in:
parent
8a2dc7583b
commit
73d39f4072
@ -348,9 +348,11 @@ public class DefaultDeviceStateService extends TbApplicationEventListener<Partit
|
||||
|
||||
initPartitions(addedPartitions);
|
||||
|
||||
log.info("Managing following partitions:");
|
||||
partitionedDevices.forEach((tpi, devices) -> {
|
||||
log.info("[{}]: {} devices", tpi.getFullTopicName(), devices.size());
|
||||
scheduledExecutor.submit(() -> {
|
||||
log.info("Managing following partitions:");
|
||||
partitionedDevices.forEach((tpi, devices) -> {
|
||||
log.info("[{}]: {} devices", tpi.getFullTopicName(), devices.size());
|
||||
});
|
||||
});
|
||||
} catch (Throwable t) {
|
||||
log.warn("Failed to init device states from DB", t);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user