Open richardstephens opened 4 months ago
tracing 0.1.40 tracing-appender 0.2.3
Linux dev 6.6.34-0-lts #1-Alpine SMP PREEMPT_DYNAMIC Mon, 17 Jun 2024 10:01:45 +0000 x86_64 Linux Alpine 3.20.0 Rust 1.78.0
Linux dev 6.6.34-0-lts #1-Alpine SMP PREEMPT_DYNAMIC Mon, 17 Jun 2024 10:01:45 +0000 x86_64 Linux
The rolling file appender's prune_old_logs() function calls metadata.created().ok()? which does not work on Alpine Linux.
prune_old_logs()
metadata.created().ok()?
called `Result::unwrap()` on an `Err` value: Error { kind: Unsupported, message: "creation time is not available on this platform currently" }
This causes log files to accumulate forever.
Duplicate of #2999.
Bug Report
Version
tracing 0.1.40 tracing-appender 0.2.3
Platform
Linux dev 6.6.34-0-lts #1-Alpine SMP PREEMPT_DYNAMIC Mon, 17 Jun 2024 10:01:45 +0000 x86_64 Linux
Alpine 3.20.0 Rust 1.78.0Description
The rolling file appender's
prune_old_logs()
function callsmetadata.created().ok()?
which does not work on Alpine Linux.This causes log files to accumulate forever.