cancel
Showing results for 
Search instead for 
Did you mean: 

debug.log to huge and taking to much time to show new erros

debug.log to huge and taking to much time to show new erros

So im having a problem in my magento and want to see my debug.log file to see whats the problem. But this file as already 65k lines and is taking to much time to show me the recent erros. Is there a way to clean or refresh this file so i can know whats the problem?

 

btw im trying to display my created module that is a widget on the cms home page but it gives me this We're sorry, an error has occurred while generating this content.

So yeah.. im trying to understand whats going on

3 REPLIES 3

Re: debug.log to huge and taking to much time to show new erros

Hello @franciscofdc60 ,

 

If you're using Ubuntu/Linux, run below commands to read recent logs of that file :

tail -100 var/log/debug.log
// change the no. to the no. of lines you want to read

then rename that file to something else so Magento can create a new debug.log with fresh data :

mv var/log/debug.log var/log/debug.log.bak

Hope it helps !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: debug.log to huge and taking to much time to show new erros

Hi thanks for the answer. Im using mac so the solution for me was running > debug.log and it cleans all the data in the file.

 

Thanks anyway

Re: debug.log to huge and taking to much time to show new erros

@franciscofdc60 ,

 

FYI, Mac OS is based on Linux, so those command would have worked.

Removing the log file without check can be extremely dangerous.

Great if it's resolved now!

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy