log rotation actually doesn't save old logs (it truncates them)

Bug #242806 reported by Max Kanat-Alexander
4
Affects Status Importance Assigned to Milestone
loggerhead
Fix Released
High
Martin Albisetti
1.6
Fix Released
High
Martin Albisetti

Bug Description

I have log.roll = 'weekly' in my loggerhead.conf (with current trunk).

I just noticed today that I now have about nine months' worth of files that have only one line in them. It appears that loggerhead rolls the log, writes a single *new* line to the rolled log (discarding the entire log history) and then starts writing new stuff to the original file (without saving any of the old history).

Martin Albisetti (beuno)
Changed in loggerhead:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Martin Albisetti (beuno) wrote :

I've committed a change to trunk that should fix this.
Could you verify it? (maybe make the logs rotate daily for a while?)

Thanks!

Changed in loggerhead:
assignee: nobody → beuno
status: Confirmed → Fix Committed
Martin Albisetti (beuno)
Changed in loggerhead:
status: Fix Committed → Fix Released
Revision history for this message
Max Kanat-Alexander (mkanat) wrote :

Yes, I can verify that that fixed it! Thank you. :-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.