mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[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:
parent
2fa28a9735
commit
64940c79a2
@ -177,7 +177,7 @@ public class Ism8Handler extends BaseThingHandler implements IDataPointChangeLis
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} else {
|
} 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());
|
dataPoint.getId());
|
||||||
}
|
}
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
@ -193,7 +193,7 @@ public class Ism8Handler extends BaseThingHandler implements IDataPointChangeLis
|
|||||||
for (Channel channel : getThing().getChannels()) {
|
for (Channel channel : getThing().getChannels()) {
|
||||||
if (channel.getConfiguration().containsKey(CHANNEL_CONFIG_ID)) {
|
if (channel.getConfiguration().containsKey(CHANNEL_CONFIG_ID)) {
|
||||||
if (updateChannel(channel, dataPoint)) {
|
if (updateChannel(channel, dataPoint)) {
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -37,8 +37,6 @@ import org.openhab.core.library.unit.Units;
|
|||||||
import org.openhab.core.types.Command;
|
import org.openhab.core.types.Command;
|
||||||
import org.openhab.core.types.State;
|
import org.openhab.core.types.State;
|
||||||
import org.openhab.core.util.HexUtils;
|
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)
|
@ExtendWith(MockitoExtension.class)
|
||||||
@NonNullByDefault
|
@NonNullByDefault
|
||||||
public class Ism8DomainMapTest {
|
public class Ism8DomainMapTest {
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(Ism8DomainMap.class);
|
|
||||||
|
|
||||||
@BeforeEach
|
@BeforeEach
|
||||||
public void initialize() {
|
public void initialize() {
|
||||||
|
Loading…
Reference in New Issue
Block a user