Skip to content

feat(qpe): add an option to disable logging to console#28253

Merged
aqrln merged 2 commits intomainfrom
push-kqvtxxxsytms
Oct 9, 2025
Merged

feat(qpe): add an option to disable logging to console#28253
aqrln merged 2 commits intomainfrom
push-kqvtxxxsytms

Conversation

@aqrln
Copy link
Copy Markdown
Member

@aqrln aqrln commented Oct 9, 2025

@aqrln aqrln added this to the 6.18.0 milestone Oct 9, 2025
Copilot AI review requested due to automatic review settings October 9, 2025 10:44
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds functionality to disable console logging in the query plan executor by introducing an 'off' log level option. This is needed for prisma dev integration where console logging may not be desired.

  • Added a new ConsoleLogLevel type that extends LogLevel with an 'off' option
  • Implemented a DroppingSink class that silently discards all log events
  • Updated the console logger factory to use the dropping sink when log level is 'off'

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/query-plan-executor/src/options.ts Defines new ConsoleLogLevel type and updates LogOptions interface
packages/query-plan-executor/src/log/sink.ts Adds DroppingSink class for discarding log events
packages/query-plan-executor/src/log/sink.test.ts Adds unit tests for the new DroppingSink class
packages/query-plan-executor/src/log/factory.ts Updates console logger factory to handle 'off' log level
packages/query-plan-executor/src/log/factory.test.ts Adds comprehensive tests for the updated logger factory
packages/query-plan-executor/src/index.ts Exports the new ConsoleLogLevel type

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@aqrln aqrln changed the base branch from main to push-xppwyzzptmrm October 9, 2025 10:48
@aqrln aqrln force-pushed the push-kqvtxxxsytms branch from 6df60ca to 9cba426 Compare October 9, 2025 10:52
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 9, 2025

size-limit report 📦

Path Size
packages/client/runtime/library.js 197.77 KB (0%)
packages/client/runtime/library.d.ts 126.71 KB (0%)
packages/client/runtime/binary.js 658.34 KB (0%)
packages/client/runtime/binary.d.ts 26 B (0%)
packages/client/runtime/edge.js 166.66 KB (0%)
packages/client/runtime/edge-esm.js 166.12 KB (0%)
packages/client/runtime/wasm-engine-edge.js 128.78 KB (0%)
packages/client/runtime/index-browser.js 34.5 KB (0%)
packages/client/runtime/index-browser.d.ts 11.64 KB (0%)
packages/cli/build/index.js 2.63 MB (0%)
packages/client/prisma-client-0.0.0.tgz 25.93 MB (-0.01% 🔽)
packages/cli/prisma-0.0.0.tgz 16.73 MB (+0.01% 🔺)
packages/bundle-size/da-workers-libsql/output.tgz 924.95 KB (0%)
packages/bundle-size/da-workers-neon/output.tgz 998.95 KB (0%)
packages/bundle-size/da-workers-pg/output.tgz 998.21 KB (0%)
packages/bundle-size/da-workers-planetscale/output.tgz 941.41 KB (0%)
packages/bundle-size/da-workers-d1/output.tgz 906.81 KB (0%)

jacek-prisma
jacek-prisma previously approved these changes Oct 9, 2025
Base automatically changed from push-xppwyzzptmrm to main October 9, 2025 11:42
@aqrln aqrln dismissed jacek-prisma’s stale review October 9, 2025 11:42

The base branch was changed.

@aqrln aqrln force-pushed the push-kqvtxxxsytms branch from 1d82e61 to 2be28d8 Compare October 9, 2025 11:43
@aqrln aqrln merged commit 12532a3 into main Oct 9, 2025
45 checks passed
@aqrln aqrln deleted the push-kqvtxxxsytms branch October 9, 2025 13:01
aqrln added a commit that referenced this pull request Oct 16, 2025
Conflicts in `packages/config` were automatically solved using
[Mergiraf](https://mergiraf.org/).

Commits:

- **fix: fix neon listener leak (#28255)**
- **feat(qpe): add an option to disable logging to console (#28253)**
- **feat(adapter-mssql): support multiSubnetFailover flag in connection
string (#28261)**
- **chore: use pnpm catalog (#28236)**
- **fix: revert "chore: use pnpm catalog (#28236)" (#28271)**
- **chore: upgrade OpenTelemetry deps and refresh tracing setup in
client (#28268)**
- **chore(deps): update engines to
6.18.0-3.b03d75f1a67e62289420f5697c28a3ff8dbb0424 (#28258)**
- **feat(qpe): expose package version as an export (#28275)**
- **feat: support OpenTelemetry in loadable sub-commands (#28272)**
- **chore(deps): update engines to
6.18.0-6.9bf76dbea6c9e34d59a3577015bd1e94bfda7624 (#28288)**
- **fix(adapter-pg): historical dates (#28212)**
- **chore(deps): update engines to
6.18.0-7.d3fc122f88ca3ce86f67a797debfb179a39ccf48 (#28293)**
- **fix: support multiple Prisma instances with different providers
(#28291)**
- **feat(config): add support for `engine?: 'js' | 'classic'` (#28266)**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants