From: "Brian C. Lane" <bcl(a)redhat.com>
log to syslog as well as /mnt/sysimage/root/install.log so that virtio
and remote logging see the progress of the install.
---
pyanaconda/packaging/yumpayload.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 5d85b3a..85f534c 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -45,6 +45,9 @@ import time
from . import *
+import logging
+log = logging.getLogger("anaconda")
+
try:
import rpm
except ImportError:
@@ -72,9 +75,6 @@ from pyanaconda.image import findFirstIsoImage
import gettext
_ = lambda x: gettext.ldgettext("anaconda", x)
-import logging
-log = logging.getLogger("anaconda")
-
from pyanaconda.errors import *
from pyanaconda.packaging import NoSuchGroup, NoSuchPackage
import pyanaconda.progress as progress
@@ -1133,6 +1133,7 @@ class RPMCallback(object):
log_msg = msg_format % (mode, txmbr.po,
self.completed_actions,
self.total_actions)
+ log.info(log_msg)
self.install_log.write("%s %s\n" %
(time.strftime("%H:%M:%S"),
log_msg))
self.install_log.flush()
--
1.7.7.6
Show replies by date
log to syslog as well as /mnt/sysimage/root/install.log so that
virtio
and remote logging see the progress of the install.
Looks fine.
- Chris