From e638e9c760a394672ac4caba861bca8c79c8f6d2 Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Mon, 8 Jul 2024 18:28:29 +0200 Subject: [PATCH] Remove repetitive logging --- src/device/device.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/device/device.ts b/src/device/device.ts index 46eb6acf..f1b5aa96 100644 --- a/src/device/device.ts +++ b/src/device/device.ts @@ -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}`); @@ -830,4 +829,4 @@ export abstract class deviceBase { async enablingDeviceLogging(): Promise { return this.deviceLogging.includes('debug') || this.deviceLogging === 'standard'; } -} \ No newline at end of file +}