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; });