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

Can't log statements when using drift_flutter #3455

Open
lucasdidur opened this issue Feb 6, 2025 · 1 comment
Open

Can't log statements when using drift_flutter #3455

lucasdidur opened this issue Feb 6, 2025 · 1 comment

Comments

@lucasdidur
Copy link

Describe the bug

There no access to logStatements = true

@simolus3
Copy link
Owner

simolus3 commented Feb 6, 2025

The preferred approach for this would be to apply an interceptor which offers more control over the format too. You'd use it with driftDatabase(...).interceptWith(LogInterceptor()). Does that work for you?

We should perhaps offer a LogInterceptor as part of drift and deprecate logStatements: true.

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

2 participants