cleanup_old_logs

Function cleanup_old_logs 

Source
pub(crate) fn cleanup_old_logs(log_dir: &Path, days: u64)
Expand description

Delete log files (.log.) older than days to prevent unbounded growth. Only touches files with .log. in the name — pointer files and other data are safe.