[ecobee] logging improvements (#10772)

Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
This commit is contained in:
robnielsen 2021-05-29 13:10:06 -05:00 committed by GitHub
parent 3875d2aca5
commit 22c5e841dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -277,7 +277,7 @@ public class EcobeeThermostatBridgeHandler extends BaseBridgeHandler {
String channelId = channelUID.getIdWithoutGroup();
String groupId = channelUID.getGroupId();
if (groupId == null) {
logger.info("Can't handle command because channel's groupId is null");
logger.info("Can't handle command '{}' because channel's groupId is null", command);
return;
}
ThermostatDTO thermostat = new ThermostatDTO();
@ -317,7 +317,7 @@ public class EcobeeThermostatBridgeHandler extends BaseBridgeHandler {
}
private void setField(Field field, Object object, Command command) {
logger.info("Setting field '{}.{}' to value '{}'", object.getClass().getSimpleName().toLowerCase(),
logger.debug("Setting field '{}.{}' to value '{}'", object.getClass().getSimpleName().toLowerCase(),
field.getName(), command);
Class<?> fieldClass = field.getType();
try {