cancel
Showing results for 
Search instead for 
Did you mean: 

Hug size of debug.log file in Magento 2.2 - Production

Hug size of debug.log file in Magento 2.2 - Production

Yesterday I passed my Magento 2.2 to production and the debug.log is collapsing the server every 12 hours. Can someone tell me how to disable the debug.log?

2 REPLIES 2

Re: Hug size of debug.log file in Magento 2.2 - Production

Re: Hug size of debug.log file in Magento 2.2 - Production

This file contain debug logs:

 

To disable debug logging: You need to run these two commands.

 

bin/magento config:set dev/debug/debug_logging 0

 

Flush the cache

 

bin/magento cache:flush