From d18c9122de41a659948d660754bde81026778d35 Mon Sep 17 00:00:00 2001 From: Darick Tong <132324914+darkgnotic@users.noreply.github.com> Date: Mon, 16 Dec 2024 14:27:46 -0800 Subject: [PATCH] chore(zero-cache): move the query into a log context param (#3369) --- .../src/services/change-streamer/pg/change-source.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/zero-cache/src/services/change-streamer/pg/change-source.ts b/packages/zero-cache/src/services/change-streamer/pg/change-source.ts index 6775944f7..674b867ef 100644 --- a/packages/zero-cache/src/services/change-streamer/pg/change-source.ts +++ b/packages/zero-cache/src/services/change-streamer/pg/change-source.ts @@ -487,10 +487,9 @@ class ChangeMaker { event, ).map(change => ['data', change] satisfies Data); - this.#lc.info?.( - `${changes.length} schema change(s) for ${event.context.query}`, - changes, - ); + this.#lc + .withContext('query', event.context.query) + .info?.(`${changes.length} schema change(s)`, changes); return changes; }