Skip to content

Log rotator: potential FD leak + add option to delete old log files #683

Description

@kriszyp

Two related log management issues:

  1. FD leak: the log rotator may not be closing file descriptors after rotation — FDs accumulate over time.
  2. Old log deletion: no option to automatically delete log files older than N days — operators must manage manually.

Asks

  • Audit the log rotation path for unclosed FDs.
  • Add logging.maxAgeDays (or equivalent) config to auto-delete old rotated files.

🤖 Filed by Claude on behalf of Kris.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:loggingLogging, log rotation, log managementbugSomething isn't workingfrom-jiraMigrated or originated from a Jira ticket

    Type

    No type

    Fields

    Priority

    P1

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions