nekohayo / specto

Automatically exported from code.google.com/p/specto
0 stars 0 forks source link

don't let the log file get huge #119

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
My specto.log weights 4.9 MiB! This is a horrible size. Specto should be
able to discard old stuff. How should we fix this?

Original issue reported on code.google.com by nekoh...@gmail.com on 16 Mar 2008 at 4:37

GoogleCodeExporter commented 9 years ago
Only saving warnings, errors and critical errors to the log file should make a 
lot of
difference

Original comment by woutclym...@gmail.com on 18 Mar 2008 at 6:29

GoogleCodeExporter commented 9 years ago

Original comment by nekoh...@gmail.com on 18 Mar 2008 at 1:25

GoogleCodeExporter commented 9 years ago
I was thinking on removing lines at the top of the file when it exceeds a 
certain
size, but it would be bad performance too. 

However, someone suggested to me to move to *.log.old, and create a new log, it 
would
make sense.

1.5 MiB of text is already *huge*, it is about 36 thousand lines. 
For instance, I know that gnome was slowing down completely because the 
"recently
used" file was never cleared: http://jeff.ecchi.ca/blog/?p=317

So, to retain optimal performance, Specto really shouldn't need over 150-200 
KiB of
logs. And that's a generous amount already, it's about 5000 lines.

Original comment by nekoh...@gmail.com on 21 May 2008 at 1:21

GoogleCodeExporter commented 9 years ago
Fixed in rev 73

Original comment by woutclym...@gmail.com on 6 Jun 2008 at 10:07