[ism8] Improve debug logging (#17705)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Holger Friedrich 2024-11-06 07:56:17 +01:00 committed by Ciprian Pascu
parent 2fa28a9735
commit 64940c79a2
2 changed files with 2 additions and 5 deletions

View File

@ -177,7 +177,7 @@ public class Ism8Handler extends BaseThingHandler implements IDataPointChangeLis
return true;
}
} else {
logger.debug("Ism8 channel: {} and DataPoint do not have a matching Id: {} vs {}", channel.getUID(), id,
logger.trace("Ism8 channel: {} and DataPoint do not have a matching Id: {} vs {}", channel.getUID(), id,
dataPoint.getId());
}
} catch (NumberFormatException e) {
@ -193,7 +193,7 @@ public class Ism8Handler extends BaseThingHandler implements IDataPointChangeLis
for (Channel channel : getThing().getChannels()) {
if (channel.getConfiguration().containsKey(CHANNEL_CONFIG_ID)) {
if (updateChannel(channel, dataPoint)) {
break;
return;
}
}
}

View File

@ -37,8 +37,6 @@ import org.openhab.core.library.unit.Units;
import org.openhab.core.types.Command;
import org.openhab.core.types.State;
import org.openhab.core.util.HexUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
@ -48,7 +46,6 @@ import org.slf4j.LoggerFactory;
@ExtendWith(MockitoExtension.class)
@NonNullByDefault
public class Ism8DomainMapTest {
private static final Logger LOGGER = LoggerFactory.getLogger(Ism8DomainMap.class);
@BeforeEach
public void initialize() {