MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / prune_old_files

Function prune_old_files

atomic-cli/src/logging/mod.rs:350–355  ·  view source on GitHub ↗
(dir: &Path)

Source from the content-addressed store, hash-verified

348}
349
350fn 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.
358fn log_panics() {

Callers 1

initFunction · 0.85

Calls 1

pruneFunction · 0.85

Tested by

no test coverage detected