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?

Tags (1)
2 REPLIES

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