From 6f454e1d6e4247c325daf88cdc53c20d8f2f2d2c Mon Sep 17 00:00:00 2001 From: Philipp Arndt <2f.mail@gmx.de> Date: Mon, 13 May 2024 19:05:49 +0200 Subject: [PATCH] feat: improve error logging (#608) --- app/lib/api/v2/hue-api-v2.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/api/v2/hue-api-v2.ts b/app/lib/api/v2/hue-api-v2.ts index a1a6d17d..b8b40874 100644 --- a/app/lib/api/v2/hue-api-v2.ts +++ b/app/lib/api/v2/hue-api-v2.ts @@ -86,7 +86,7 @@ const putLightLocked = async (resource: HueIdentifiable, message: PutLight) => { return result.data } catch (e) { - log.error("Put light failed with error", e) + log.error("Put light failed with error", message, e) } } @@ -117,7 +117,7 @@ export const putLight = async (light: HueIdentifiable, message: PutLight) => { resolveResult() }, (err) => { if (err) { - log.error("Put light failed with error", err) + log.error("Put light failed with error", message, err) } })