Fixes #10939: Remove excessive log statements for unknown ApplicationGroups (#11433)

Signed-off-by: Rouven Schürch <r.schuerch@gmx.ch>
This commit is contained in:
Rouven Schürch 2021-10-24 21:35:23 +02:00 committed by GitHub
parent f88ccb87dc
commit 9f25507731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -278,9 +278,7 @@ public class DeviceImpl extends AbstractGeneralDeviceInformations implements Dev
*/ */
private boolean addGroupToList(Short groupID) { private boolean addGroupToList(Short groupID) {
ApplicationGroup group = ApplicationGroup.getGroup(groupID); ApplicationGroup group = ApplicationGroup.getGroup(groupID);
if (ApplicationGroup.UNDEFINED.equals(group)) { if (!ApplicationGroup.UNDEFINED.equals(group)) {
logger.warn("Unknown application group with ID '{}' found! Ignoring group", groupID);
} else {
if (!this.groupList.contains(group)) { if (!this.groupList.contains(group)) {
this.groupList.add(group); this.groupList.add(group);
} }