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

log: Preserve log messages during RPM transaction #1772

Merged
merged 1 commit into from
Oct 15, 2024

Commits on Oct 11, 2024

  1. log: Preserve log messages during RPM transaction

    There is an issue with RotatingFileLogger where log messages during an
    RPM transaction in installroot fail to be recorded. When RPM enters a
    chroot environment during the transaction, the path resolution changes,
    and RotatingFileLogger attempts to reopen the log file from its disk
    path for each message. However, once inside the chroot, the log file
    path can no longer be resolved, leading to a failure in logging until
    the RPM transaction completes.
    
    This patch modifies the RotatingFileLogger behavior to keep the log file
    descriptor open, ensuring continuous logging throughout the RPM
    transaction.
    m-blaha committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    2e40e1b View commit details
    Browse the repository at this point in the history