This bug is related to Bug #1695720.
The original bug addresses excessive logging (due to high internal log level and logging unnecessary debug data by default).
This request is about providing a built-in log rotation in DNF.
The reasons are following:
* logrotate is not always installed on the system (there's no hard dependency on it)
* /etc/logrotate.d/dnf is configured to run weekly; it is possible to change the rotation frequency to 'hourly', but it still doesn't solve excessive logging when the log grows quickly in minutes
* logrotate handles rotating only system logs under /var/log/ and doesn't rotate user logs in /var/tmp/dnf-<login>-*/
The dev team still works on scoping the change and will provide more details once the scope is known.
The following PRs add built-in log rotation:
PR with tests: https://github.com/rpm-software-management/ci-dnf-stack/pull/562
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.