|
|
@ -509,9 +509,12 @@ public class TraccarClientFactory {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
// forward to add device
|
|
|
|
// forward to add device
|
|
|
|
String msg = "Tracker device for device id " + traccarDevice.getId() + " not found in local database";
|
|
|
|
try {
|
|
|
|
log.error(msg);
|
|
|
|
addDevice(traccarDevice,tenantId);
|
|
|
|
throw new TrackerManagementDAOException(msg);
|
|
|
|
} catch (TrackerAlreadyExistException e) {
|
|
|
|
|
|
|
|
String msg = "The device already exist";
|
|
|
|
|
|
|
|
log.error(msg, e);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|