log rotation actually doesn't save old logs (it truncates them)
Bug #242806 reported by
Max Kanat-Alexander
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).
Changed in loggerhead: | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in loggerhead: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
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!