Browse Source

fixed device sessions dump

pull/7838/head
YevhenBondarenko 4 years ago
parent
commit
36793c432d
  1. 2
      application/src/main/java/org/thingsboard/server/service/session/DefaultDeviceSessionCacheService.java

2
application/src/main/java/org/thingsboard/server/service/session/DefaultDeviceSessionCacheService.java

@ -52,7 +52,7 @@ public class DefaultDeviceSessionCacheService implements DeviceSessionCacheServi
@Override
public DeviceSessionsCacheEntry put(DeviceId deviceId, DeviceSessionsCacheEntry sessions) {
log.debug("[{}] Pushing session data to cache: {}", deviceId, sessions);
cache.putIfAbsent(deviceId, sessions);
cache.put(deviceId, sessions);
return sessions;
}
}

Loading…
Cancel
Save