gearbox-solutions / eloquent-filemaker

A Model extension and Eloquent driver for Laravel connecting to FileMaker through the Data API
https://gearboxgo.com
MIT License
54 stars 17 forks source link

Always Log FM Query to clockwork #73

Open kostaszazim opened 3 weeks ago

kostaszazim commented 3 weeks ago

Hi! in src/Services/FileMakerConnection.php would that be possible to move line 744 after line 721 in order to always fire the QueryExecuted event? This should log the query to clockwork even with no results returned. Because now if you get back no results nothing is logged to clockwork and it is difficult to debug the actual query made to filemaker Data API.

Smef commented 2 weeks ago

We've actually had some discussions about this internally already. We may add something in there or put a slightly different response in the log when there's an error like that.