diff options
author | Jesse Keating <jkeating@redhat.com> | 2012-11-14 18:59:11 -0800 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2012-11-15 19:40:19 -0800 |
commit | 9abf50ad416bb4e3770b77a67e9f12e6c8bfc99c (patch) | |
tree | f811f45f5de0149b1fe781ff8bfb73c10dcd08fe /pyanaconda/anaconda_log.py | |
parent | 5a90334bebcd8c66ba5a5a17ee0e46619055a507 (diff) | |
download | anaconda-9abf50ad416bb4e3770b77a67e9f12e6c8bfc99c.tar.gz anaconda-9abf50ad416bb4e3770b77a67e9f12e6c8bfc99c.tar.xz anaconda-9abf50ad416bb4e3770b77a67e9f12e6c8bfc99c.zip |
Enable verbose yum logging once more
This time it shoves all the logging data into packaging.log
This commit has some hacks to work around yum issues. I've discussed
with upstream and they're going to work on better APIs around logging in
the future.
Diffstat (limited to 'pyanaconda/anaconda_log.py')
-rw-r--r-- | pyanaconda/anaconda_log.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pyanaconda/anaconda_log.py b/pyanaconda/anaconda_log.py index 046cca7ee..207efe417 100644 --- a/pyanaconda/anaconda_log.py +++ b/pyanaconda/anaconda_log.py @@ -161,6 +161,13 @@ class AnacondaLog: minLevel=logging.DEBUG) self.forwardToSyslog(packaging_logger) + # Create the yum logger and link it to packaging + yum_logger = logging.getLogger("yum") + yum_logger.setLevel(logging.DEBUG) + self.addFileHandler(PACKAGING_LOG_FILE, yum_logger, + minLevel=logging.DEBUG) + self.forwardToSyslog(yum_logger) + # Create a second logger for just the stuff we want to dup on # stdout. Anything written here will also get passed up to the # parent loggers for processing and possibly be written to the |