cancel
Showing results for 
Search instead for 
Did you mean: 

huge size of debug.log file

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

huge size of debug.log file

I have created a cronjob which will create or update a number of products(around 2000 products, runs cron 2 times in a day). When the cron runs and update the products data, huge amount of "cache-invalidated" logs are written to debug.log file which largely increases the size of the debug.log. My system is in production mode. How can we block the system generated "cache-invalidated" logs.

1 REPLY 1

Re: huge size of debug.log file

It appears there's an open issue for being able to change the verbosity of these messages: https://github.com/magento/magento2/issues/4362

 

In the meantime, there is a suggestion on this stackoverflow post on how to override the code to disable these particular notices: https://magento.stackexchange.com/a/177368/26

----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!