forwaded traccer device not present to addDevice

pull/21/head
Deenath Geeganage 2 years ago
parent 3ac643359f
commit a94bfc6940

@ -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);
}
} }
} }

Loading…
Cancel
Save