(dir: &Path)
| 348 | } |
| 349 | |
| 350 | fn prune_old_files(dir: &Path) { |
| 351 | let failures = retention::prune(dir, LOG_FILE_PREFIX, LOG_FILE_SUFFIX, KEPT_LOG_FILES); |
| 352 | for (path, error) in failures { |
| 353 | tracing::debug!("could not remove old log file {}: {error}", path.display()); |
| 354 | } |
| 355 | } |
| 356 | |
| 357 | /// Log panics to the file; the previous hook still prints them. |
| 358 | fn log_panics() { |