]> git.basschouten.com Git - openhab-addons.git/commitdiff
[insteon] redact password from thing status and log file when hub initialization...
authorrobnielsen <rob.nielsen@yahoo.com>
Mon, 19 Feb 2024 13:46:53 +0000 (07:46 -0600)
committerGitHub <noreply@github.com>
Mon, 19 Feb 2024 13:46:53 +0000 (14:46 +0100)
Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
bundles/org.openhab.binding.insteon/src/main/java/org/openhab/binding/insteon/internal/handler/InsteonNetworkHandler.java

index 4ae66b63d48e7bf8ada3fbea106a58b8810602df..e1f8d1d79cc40a056a9cc644411f87a50210249e 100644 (file)
@@ -25,6 +25,7 @@ import org.openhab.binding.insteon.internal.InsteonBinding;
 import org.openhab.binding.insteon.internal.config.InsteonNetworkConfiguration;
 import org.openhab.binding.insteon.internal.device.InsteonAddress;
 import org.openhab.binding.insteon.internal.discovery.InsteonDeviceDiscoveryService;
+import org.openhab.binding.insteon.internal.utils.Utils;
 import org.openhab.core.io.console.Console;
 import org.openhab.core.io.transport.serial.SerialPortManager;
 import org.openhab.core.thing.Bridge;
@@ -125,7 +126,7 @@ public class InsteonNetworkHandler extends BaseBridgeHandler {
                     }, 0, DRIVER_INITIALIZED_TIME_IN_SECONDS, TimeUnit.SECONDS);
                 } else {
                     String msg = "Initialization failed, unable to start the Insteon bridge with the port '"
-                            + config.getPort() + "'.";
+                            + Utils.redactPassword(config.getPort()) + "'.";
                     logger.warn(msg);
 
                     updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, msg);