[PATCH 1/2] Add a timestamp to every line in install.log/upgrade.log.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Knowing what package is being installed when is helpful for performance
testing.
---
 pyanaconda/backend.py    |    4 ++--
 pyanaconda/yuminstall.py |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pyanaconda/backend.py b/pyanaconda/backend.py
index ba2b841..eb5e780 100644
--- a/pyanaconda/backend.py
+++ b/pyanaconda/backend.py
@@ -129,9 +129,9 @@ class AnacondaBackend:
         backend_log.log.start(instPath, syslogname)
 
         if self.anaconda.upgrade:
-            self.modeText = _("Upgrading %s\n")
+            self.modeText = _("%s Upgrading %s\n")
         else:
-            self.modeText = _("Installing %s\n")
+            self.modeText = _("%s Installing %s\n")
 
     def kernelVersionList(self, rootPath="/"):
         return []
diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index ee66983..378d4a1 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -175,7 +175,7 @@ class AnacondaCallback:
             s += summary.strip()
             self.progress.set_label(s)
 
-            self.instLog.write(self.modeText % str(pkgStr))
+            self.instLog.write(self.modeText % (time.strftime("%H:%M:%S"), str(pkgStr)))
 
             self.instLog.flush()
             self.openfile = None
-- 
1.7.4.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux