Skip to content

Commit

Permalink
Remove repetitive logging (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolson authored Jul 8, 2024
1 parent e7fa656 commit 48c5c7d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/device/device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ export abstract class deviceBase {
// Set an event handler
let serviceData = { model: this.device.bleModel, modelName: this.device.bleModelName } as ad['serviceData'];
switchbot.onadvertisement = async (ad: ad) => {
this.warnLog(`ad: ${JSON.stringify(ad, null, ' ')}`);
if (this.device.bleMac === ad.address && ad.serviceData.model === this.device.bleModel) {
this.debugLog(`${JSON.stringify(ad, null, ' ')}`);
this.debugLog(`address: ${ad.address}, model: ${ad.serviceData.model}`);
Expand Down Expand Up @@ -830,4 +829,4 @@ export abstract class deviceBase {
async enablingDeviceLogging(): Promise<boolean> {
return this.deviceLogging.includes('debug') || this.deviceLogging === 'standard';
}
}
}

0 comments on commit 48c5c7d

Please sign in to comment.