laravel disable query logging

Issue

I can only assume this is the reason as there are a lot of DB queries happening on my site and I am not familiar with Laravel
My server memory is increasing constantly to the point of the server dying so is there a way to disable the query logging completely without editing every page that is doing DB queries?

Solution

Search the project for: enableQueryLog then remove it. https://laravel.com/docs/5.0/database#query-logging

You might also want to visit storage/logs and clear those out.

Answered By – admcfajn

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published