Skip to content

Commit

Permalink
feat: improve error logging (#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipparndt authored May 13, 2024
1 parent 73c9c3d commit 6f454e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/api/v2/hue-api-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down Expand Up @@ -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)
}
})

Expand Down

0 comments on commit 6f454e1

Please sign in to comment.