From 1cbec16235e44c3f124c37c78e8475faacc3e4b0 Mon Sep 17 00:00:00 2001 From: Luke Rhodes Date: Wed, 1 Jan 2020 17:29:43 +1100 Subject: [PATCH] Make use of the log function so that it outputs correctly aligned (#464) --- helpers/getDevice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/getDevice.js b/helpers/getDevice.js index ac04f558..bc40aca1 100644 --- a/helpers/getDevice.js +++ b/helpers/getDevice.js @@ -15,7 +15,7 @@ const startPing = (device, log) => { device.state = 'inactive'; } else if (active && device.state !== 'active') { - if (device.state === 'inactive') console.log(`Broadlink RM device at ${device.host.address} (${device.host.macAddress || ''}) has been re-discovered.`); + if (device.state === 'inactive') log(`Broadlink RM device at ${device.host.address} (${device.host.macAddress || ''}) has been re-discovered.`); device.state = 'active'; }