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

add flag to disable logging #79

Conversation

macbookandrew
Copy link
Contributor

I’m using a mysql database for my app, as well as this package to access a FileMaker database for some additional data.

I’m also using Laravel Telescope, which listens to the \Illuminate\Database\Events\QueryExecuted event.

However, that results in ERROR Call to a member function quote() on string in vendor/laravel/telescope/src/Watchers/QueryWatcher.php on line 122. in Telescope because this line is trying to get a PDO instance.

This PR adds the ability to disable query logging just for FM queries, while leaving it on for mysql queries. The alternative would be to totally disable query logging in Telescope.

@macbookandrew
Copy link
Contributor Author

macbookandrew commented Aug 1, 2024

I did submit a PR to Telescope but I’m not sure that it will be accepted and it just got merged

@Smef
Copy link
Member

Smef commented Aug 5, 2024

Is this not necessary now?

@macbookandrew
Copy link
Contributor Author

No, not necessary as long as #78 is merged. Maybe still useful for finer-grained control over logging 🤷🏻‍♂️

@Smef
Copy link
Member

Smef commented Aug 5, 2024

Is that a feature of regular eloquent queries? Is there a control for that somewhere which isn't being respected here? I wouldn't want to add stuff like that without some explicit need to match functionality.

@Smef Smef closed this Aug 5, 2024
@macbookandrew
Copy link
Contributor Author

Not that I know of. Makes sense 🙂 👍🏻

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.

2 participants