From ca1564e8faa9fb62763a5f2fdc7993a1db238413 Mon Sep 17 00:00:00 2001 From: Collin Garvey Date: Sun, 27 Dec 2020 02:18:06 -0500 Subject: [PATCH] chore(philips-hue): correct the log text (#1523) --- src/notification/philips-hue.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/notification/philips-hue.ts b/src/notification/philips-hue.ts index 619622d..dc5291c 100644 --- a/src/notification/philips-hue.ts +++ b/src/notification/philips-hue.ts @@ -44,12 +44,12 @@ const adjustLightsWithAPI = (hueBridge: Api) => { if (lightIds) { const arrayOfIDs = lightIds.split(','); arrayOfIDs.forEach((light) => { - logger.debug('adjusting all hue lights'); + logger.debug('adjusting specified lights'); (hueBridge.lights.setLightState( light, lightState ) as Promise).catch((error: Error) => { - logger.error('Failed to adjust all lights.'); + logger.error('Failed to adjust specified lights.'); logger.error(error); throw error; }); @@ -60,12 +60,12 @@ const adjustLightsWithAPI = (hueBridge: Api) => { .getAll() .then((allLights: any[]) => { allLights.forEach((light: any) => { - logger.debug('adjusting specified lights'); + logger.debug('adjusting all hue lights'); (hueBridge.lights.setLightState( light, lightState ) as Promise).catch((error: Error) => { - logger.error('Failed to adjust specified lights.'); + logger.error('Failed to adjust all lights.'); logger.error(error); throw error; });