Skip to content

Commit 2e86964

Browse files
committed
Use libdnf logger for librepo logging
1 parent abd1112 commit 2e86964

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dnf/logging.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import dnf.const
2525
import dnf.util
2626
import libdnf
27-
import librepo
2827
import logging
2928
import os
3029
import sys
@@ -154,7 +153,7 @@ def _setup(self, verbose_level, error_level, logdir):
154153
logger_warnings.addHandler(handler)
155154

156155
lr_logfile = os.path.join(logdir, dnf.const.LOG_LIBREPO)
157-
librepo.log_set_file(lr_logfile)
156+
libdnf.conf.LibrepoLog.addHandler(lr_logfile)
158157

159158
# setup RPM callbacks logger
160159
logger_rpm = logging.getLogger("dnf.rpm")

0 commit comments

Comments
 (0)