Skip to content

Commit

Permalink
Add Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
timoclsn committed Aug 25, 2024
1 parent bdc9bc2 commit 8060bc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/data/smarthome/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,12 @@ export const controlCount = createQuery({
},
query: async () =>
Effect.gen(function* () {
yield* Effect.logInfo("Querying balcony control count");

const rawCounts = yield* queryBalconyControl;

yield* Effect.logInfo("Queried balcony control count", rawCounts);

return rawCounts.reduce(
(acc, count) => ({ ...acc, [count.color]: count.count }),
{
Expand Down

0 comments on commit 8060bc3

Please sign in to comment.