增加日志

master
648540858 2025-01-06 09:34:32 +08:00
parent 5cf5c506b1
commit 812760efc3
1 changed files with 3 additions and 0 deletions

View File

@ -198,8 +198,11 @@ public class DeviceServiceImpl implements IDeviceService {
log.warn("[设备离线]{}, device{}", reason, deviceId);
Device device = getDeviceByDeviceIdFromDb(deviceId);
if (device == null) {
log.warn("[设备不存在] device{}", deviceId);
return;
}
log.info("[设备离线] device{} 当前心跳间隔: {} 上次心跳时间:{} 上次注册时间: {}", deviceId,
device.getKeepaliveIntervalTime(), device.getKeepaliveTime(), device.getRegisterTime());
String registerExpireTaskKey = VideoManagerConstants.REGISTER_EXPIRE_TASK_KEY_PREFIX + deviceId;
dynamicTask.stop(registerExpireTaskKey);
if (device.isOnLine()) {