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 · 0 comments
Open

How to disable logging for specific queries? #1020

qtt153759 opened this issue Sep 3, 2024 · 0 comments

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.

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

No branches or pull requests

1 participant