Commit 73d39f40720c038f290174dcb4820f7a5c20db77

Authored by Andrii Shvaika
1 parent 8a2dc758

Fixed logging of the device state service partitions

... ... @@ -348,9 +348,11 @@ public class DefaultDeviceStateService extends TbApplicationEventListener<Partit
348 348
349 349 initPartitions(addedPartitions);
350 350
351   - log.info("Managing following partitions:");
352   - partitionedDevices.forEach((tpi, devices) -> {
353   - log.info("[{}]: {} devices", tpi.getFullTopicName(), devices.size());
  351 + scheduledExecutor.submit(() -> {
  352 + log.info("Managing following partitions:");
  353 + partitionedDevices.forEach((tpi, devices) -> {
  354 + log.info("[{}]: {} devices", tpi.getFullTopicName(), devices.size());
  355 + });
354 356 });
355 357 } catch (Throwable t) {
356 358 log.warn("Failed to init device states from DB", t);
... ...