Skip to content

Commit

Permalink
fix mem query log
Browse files Browse the repository at this point in the history
  • Loading branch information
patroza committed Dec 12, 2023
1 parent 6b7ef0d commit 93f51f3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/yellow-seas-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect-app/infra": patch
---

fix memory query log
5 changes: 4 additions & 1 deletion packages/infra/_src/services/Store/Memory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ function logQuery(f: FilterArgs<any, any>) {
return Effect
.logDebug("mem query")
.pipe(Effect.annotateLogs({
query: f
filter: JSON.stringify(f.filter ?? null, undefined, 2),
select: JSON.stringify(f.select ?? null, undefined, 2),
skip: f.skip,
limit: f.limit
}))
}

Expand Down

0 comments on commit 93f51f3

Please sign in to comment.