From 8f1505d22ad513e74a6298de7e10a1b9a87d4734 Mon Sep 17 00:00:00 2001 From: logresearch Date: Tue, 9 Jul 2024 00:15:10 +0800 Subject: [PATCH] Fix logging statements (#16989) * Fix logging statement Signed-off-by: logresearch Signed-off-by: Ciprian Pascu --- .../digiplex/internal/handler/DigiplexBridgeHandler.java | 4 ++-- .../pentair/internal/handler/PentairIntelliFloHandler.java | 2 +- .../sonyaudio/internal/protocol/SonyAudioClientSocket.java | 2 +- .../internal/api/protocol/aes/SecurePasstroughCipher.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bundles/org.openhab.binding.digiplex/src/main/java/org/openhab/binding/digiplex/internal/handler/DigiplexBridgeHandler.java b/bundles/org.openhab.binding.digiplex/src/main/java/org/openhab/binding/digiplex/internal/handler/DigiplexBridgeHandler.java index 39503d4edf0..f805eba944d 100644 --- a/bundles/org.openhab.binding.digiplex/src/main/java/org/openhab/binding/digiplex/internal/handler/DigiplexBridgeHandler.java +++ b/bundles/org.openhab.binding.digiplex/src/main/java/org/openhab/binding/digiplex/internal/handler/DigiplexBridgeHandler.java @@ -309,7 +309,7 @@ public class DigiplexBridgeHandler extends BaseBridgeHandler implements SerialPo @Override public void run() { - logger.debug("Receiver thread started"); + logger.debug("Starting receiver thread"); while (!interrupted()) { try { Optional message = readLineBlocking(); @@ -360,7 +360,7 @@ public class DigiplexBridgeHandler extends BaseBridgeHandler implements SerialPo @Override public void run() { - logger.debug("Sender thread started"); + logger.debug("Starting sender thread"); while (!interrupted()) { try { DigiplexRequest request = sendQueue.take(); diff --git a/bundles/org.openhab.binding.pentair/src/main/java/org/openhab/binding/pentair/internal/handler/PentairIntelliFloHandler.java b/bundles/org.openhab.binding.pentair/src/main/java/org/openhab/binding/pentair/internal/handler/PentairIntelliFloHandler.java index 91821f9e581..e67aa19c029 100644 --- a/bundles/org.openhab.binding.pentair/src/main/java/org/openhab/binding/pentair/internal/handler/PentairIntelliFloHandler.java +++ b/bundles/org.openhab.binding.pentair/src/main/java/org/openhab/binding/pentair/internal/handler/PentairIntelliFloHandler.java @@ -62,7 +62,7 @@ public class PentairIntelliFloHandler extends PentairBaseThingHandler { @Override public void handleCommand(ChannelUID channelUID, Command command) { if (command instanceof RefreshType) { - logger.debug("Intellflo received refresh command"); + logger.debug("IntelliFlo received refresh command"); updateChannel(channelUID.getId(), null); } } diff --git a/bundles/org.openhab.binding.sonyaudio/src/main/java/org/openhab/binding/sonyaudio/internal/protocol/SonyAudioClientSocket.java b/bundles/org.openhab.binding.sonyaudio/src/main/java/org/openhab/binding/sonyaudio/internal/protocol/SonyAudioClientSocket.java index 96d671dbe85..76aa84b1a91 100644 --- a/bundles/org.openhab.binding.sonyaudio/src/main/java/org/openhab/binding/sonyaudio/internal/protocol/SonyAudioClientSocket.java +++ b/bundles/org.openhab.binding.sonyaudio/src/main/java/org/openhab/binding/sonyaudio/internal/protocol/SonyAudioClientSocket.java @@ -200,7 +200,7 @@ public class SonyAudioClientSocket { private void sendMessage(String str) throws IOException { if (isConnected()) { - logger.debug("send message fo {}: {}", uri.toString(), str); + logger.debug("send message for {}: {}", uri.toString(), str); session.getRemote().sendString(str); } else { String stack = ""; diff --git a/bundles/org.openhab.binding.tapocontrol/src/main/java/org/openhab/binding/tapocontrol/internal/api/protocol/aes/SecurePasstroughCipher.java b/bundles/org.openhab.binding.tapocontrol/src/main/java/org/openhab/binding/tapocontrol/internal/api/protocol/aes/SecurePasstroughCipher.java index 0e6f54fdc28..35ccd84261b 100644 --- a/bundles/org.openhab.binding.tapocontrol/src/main/java/org/openhab/binding/tapocontrol/internal/api/protocol/aes/SecurePasstroughCipher.java +++ b/bundles/org.openhab.binding.tapocontrol/src/main/java/org/openhab/binding/tapocontrol/internal/api/protocol/aes/SecurePasstroughCipher.java @@ -110,7 +110,7 @@ public class SecurePasstroughCipher { encodeCipher.init(1, secretKeySpec, ivParameterSpec); decodeCipher.init(2, secretKeySpec, ivParameterSpec); } catch (Exception e) { - logger.warn("initChiper failed: {}", e.getMessage()); + logger.warn("initCipher failed: {}", e.getMessage()); encodeCipher = null; decodeCipher = null; }