Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RollingFileAppender prune_old_logs() relies on metadata().created() which is not available on all platforms #3027

Open
richardstephens opened this issue Jul 9, 2024 · 1 comment

Comments

@richardstephens
Copy link

richardstephens commented Jul 9, 2024

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.0

Description

The rolling file appender's prune_old_logs() function calls metadata.created().ok()? which does not work on Alpine Linux.

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.

@kaffarell
Copy link
Contributor

Duplicate of #2999.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants