Skip to content

fix: no logging in streams.#1382

Merged
igalklebanov merged 1 commit intokysely-org:masterfrom
igalklebanov:fix-logging-in-streams
Mar 9, 2025
Merged

fix: no logging in streams.#1382
igalklebanov merged 1 commit intokysely-org:masterfrom
igalklebanov:fix-logging-in-streams

Conversation

@igalklebanov
Copy link
Copy Markdown
Member

@igalklebanov igalklebanov commented Mar 9, 2025

Hey 👋

closes #1380.

Looks like we forgot to also monkey patch streams with logging.
Added an optional (for backwards compatibility) isStream log event property.
Went ahead and added differentiation in the logs between regular queries and streamed queries in the default logger.
Tested against stream.test as well to make sure this doesn't break streaming (for real).

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kysely ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 9, 2025 7:29pm

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Mar 9, 2025

Open in Stackblitzkysely_koa_example

npm i https://pkg.pr.new/kysely-org/kysely@1382

commit: ace3b57

@igalklebanov igalklebanov marked this pull request as ready for review March 9, 2025 19:41
@igalklebanov igalklebanov merged commit 61cc5c2 into kysely-org:master Mar 9, 2025
@igalklebanov igalklebanov deleted the fix-logging-in-streams branch March 10, 2025 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Log queries for .stream()

1 participant