Skip to content

Commit

Permalink
Improve minor log messages so they're less scary
Browse files Browse the repository at this point in the history
  • Loading branch information
thenewwazoo committed Jan 16, 2023
1 parent cdbef0c commit 6a2b735
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class LutronCasetaLeap
private handleBridgeDiscovery(bridgeInfo: BridgeNetInfo) {
if (this.bridgeMgr.hasBridge(bridgeInfo.bridgeid.toLowerCase())) {
// we've already discovered this bridge, move along
this.log.info('Bridge', bridgeInfo.bridgeid, 'already known, closing.');
this.log.info('Bridge', bridgeInfo.bridgeid, 'already known, ignoring.');
return;
}
if (this.secrets.has(bridgeInfo.bridgeid.toLowerCase())) {
Expand All @@ -184,7 +184,7 @@ export class LutronCasetaLeap
this.bridgeMgr.addBridge(bridge);
this.processAllDevices(bridge);
} else {
throw new Error('no credentials for bridge ID ' + bridgeInfo.bridgeid);
this.log.info('no credentials from bridge ID', bridgeInfo.bridgeid);
}
}

Expand Down

0 comments on commit 6a2b735

Please sign in to comment.