Skip to content

Commit

Permalink
Cleaned Logger.Debug Signed-off-by: Jan Krumnow <[email protected]>
Browse files Browse the repository at this point in the history
  • Loading branch information
JankKeks committed Dec 22, 2024
1 parent 83de589 commit 3220cc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,10 @@ public void setDatapointOnWebsocketFeedback(String receivedText) {

if (deviceHandler != null) {
deviceHandler.onDeviceStateChanged(eventDatapointID, value);
logger.debug("Socket event processed: event-datapoint-ID {} value {}", eventDatapointID, value);
} else {
logger.debug("Socket event not processed: event-datapoint-ID {} value {}", eventDatapointID, value);
}

logger.debug("Socket event processed: event-datapoint-ID {} value {}", eventDatapointID, value);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,20 +291,6 @@ public void handleCommand(ChannelUID channelUID, Command command) {
if (dpg == null) {
logger.debug("Handle command for device (but invalid datapointgroup) {} - at channel {} - full command {}",
device.getDeviceId(), channelUID.getAsString(), command.toFullString());

logger.debug("Try to find channelUID in dpg: {}", channelUID.getAsString());
logger.debug("dpg: ");
mapChannelUID.forEach((k, v) -> {
if (v.getOutputDatapoint() != null) {
logger.debug("key: {} - input value: {}", k, v.getOutputDatapoint().getChannelIdforDatapoint() + " "
+ v.getOutputDatapoint().getDatapointId());
}
if (v.getInputDatapoint() != null) {
logger.debug("key: {} - output value: {}", k, v.getInputDatapoint().getChannelIdforDatapoint() + " "
+ v.getInputDatapoint().getDatapointId());
}
});

updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR,
"@text/conf-error.invalid-deviceconfig");
} else {
Expand Down Expand Up @@ -602,7 +588,7 @@ private void reloadChannelTypes() throws FreeAtHomeGeneralException {
}

// Create a channel UID. Makes sure that the channel UID is unique and generated the same way every time
private ChannelUID createChannelUID(ThingUID thingUID,String channelID, String dpgLabel) {
private ChannelUID createChannelUID(ThingUID thingUID, String channelID, String dpgLabel) {
ChannelUID channelUID = new ChannelUID(thingUID, channelID, dpgLabel.substring(4));
return channelUID;
}
Expand Down

0 comments on commit 3220cc1

Please sign in to comment.