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

Change librpm log mask value from 0xFF to everything up to RPMLOG_INFO #929

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion libdnf5/rpm/rpm_log_guard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ RpmLogGuard::RpmLogGuard(const BaseWeakPtr & base) : RpmLogGuardBase() {
rpmlogSetCallback(&rpmlog_callback, &*base->get_logger());

// TODO(lukash) once Logger supports log mask, propagate to rpm
old_log_mask = rpmlogSetMask(0xff);
// logs everything up to RPMLOG_INFO -> everything except RPMLOG_DEBUG, which is fairly low-level
// and causes librpm to not remove auxiliary temporary files.
old_log_mask = rpmlogSetMask(RPMLOG_UPTO(RPMLOG_PRI(RPMLOG_INFO)));
}


Expand Down
Loading