Browse Source

Active devices count to debug

pull/8464/head
ViacheslavKlimov 3 years ago
parent
commit
6c8f3c19de
  1. 2
      application/src/main/java/org/thingsboard/server/service/state/DefaultDeviceStateService.java

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

@ -473,7 +473,7 @@ public class DefaultDeviceStateService extends AbstractPartitionBasedService<Dev
apiUsageReportClient.report(tenantId, null, ApiUsageRecordKey.ACTIVE_DEVICES, active);
apiUsageReportClient.report(tenantId, null, ApiUsageRecordKey.INACTIVE_DEVICES, inactive);
if (active > 0) {
log.info("[{}] Active devices: {}, inactive devices: {}", tenantId, active, inactive);
log.debug("[{}] Active devices: {}, inactive devices: {}", tenantId, active, inactive);
}
});
} catch (Throwable t) {

Loading…
Cancel
Save