mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Add warning log when an invalid group name is provided
This commit is contained in:
parent
20221ba2b7
commit
908161d23e
@ -1001,6 +1001,9 @@ import java.util.stream.IntStream;
|
||||
List<DeviceIdentifier> deviceIdentifiers = new ArrayList<>();
|
||||
deviceIdentifiers.add(deviceIdentifier);
|
||||
groupManagementProviderService.addDevices(deviceGroup.getGroupId(), deviceIdentifiers);
|
||||
} else {
|
||||
log.warn("Group name: " + groupName + " configured for device "
|
||||
+ deviceIdentifier.toString() + " is invalid because the group does not exist.");
|
||||
}
|
||||
} catch (GroupManagementException e) {
|
||||
String msg = "Error occurred while trying to add the device '" + deviceIdentifier.getId() +
|
||||
|
||||
Loading…
Reference in New Issue
Block a user