As the code currently stands the latest two archiving periods are considered untouchable. It follows that archived logs for 2016-04-11 and 2016-04-10 will not be removed. This is clearly arbitrary and was intended as a safeguard to avoid removing files too eagerly.
Changing the number of untouchable periods from 2 to 1 would alleviate the problem somewhat. However, the issue of uncontrolled (in size) log files for the current period remains unaddressed.
|