-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
1 changed file
with
89 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters