Skip to content

Commit

Permalink
feat: improved log in case of getData error
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLzq committed Oct 9, 2023
1 parent c12e046 commit dcfa65e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/database/firebase/queries/realTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ const getData = async ({

return value
} catch (error) {
realTimeDebug(
`Error validation for: ${JSON.stringify({
id,
moduleId,
sensorId
})}. Error: ${error}`
)

return null
}
}
Expand Down

0 comments on commit dcfa65e

Please sign in to comment.