Skip to content

Commit

Permalink
[insteon] redact password from thing status and log file when hub ini…
Browse files Browse the repository at this point in the history
…tialization fails (#16075)

Signed-off-by: Rob Nielsen <rob.nielsen@yahoo.com>
  • Loading branch information
robnielsen committed Feb 19, 2024
1 parent 7c54f1f commit c5a3753
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
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;
Expand Down Expand Up @@ -125,7 +126,7 @@ public void initialize() {
}, 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);
Expand Down

0 comments on commit c5a3753

Please sign in to comment.