Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to disable logging for specific queries? #1020

Open
qtt153759 opened this issue Sep 3, 2024 · 1 comment
Open

How to disable logging for specific queries? #1020

qtt153759 opened this issue Sep 3, 2024 · 1 comment
Labels

Comments

@qtt153759
Copy link

qtt153759 commented Sep 3, 2024

Hi, I currently want to disable logging of some specific queries, while still enabling the others. However, it seems that bun currently only supports two modes: logging all or only logging failed queries

Example according to document: https://bun.uptrace.dev/guide/debugging.html

db.AddQueryHook(
	bundebug.NewQueryHook(
		bundebug.WithEnabled(true),
		bundebug.WithVerbose(true),
	),
)

It would be great if bun supported this feature in detail down to the specific query. If anyone has a solution to this problem, please share it with me, thanks.

Copy link

This issue has been automatically marked as stale because it has not had activity in the last 30 days. If there is no update within the next 7 days, this issue will be closed.

@github-actions github-actions bot added the stale label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant