Skip to content

Commit

Permalink
Added package logging to anaconda.log.
Browse files Browse the repository at this point in the history
Minor update, package operations are now logged in main anaconda.log
file.

Signed-off-by: Karel Valek <kvalek@redhat.com>
  • Loading branch information
Karel Valek committed Jul 16, 2015
1 parent 06a1e79 commit 35e3ce7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyanaconda/packaging/dnfpayload.py
Expand Up @@ -46,6 +46,7 @@
from pyanaconda.iutil import open # pylint: disable=redefined-builtin

log = logging.getLogger("packaging")
log_ana = logging.getLogger("anaconda")

import dnf
import dnf.exceptions
Expand Down Expand Up @@ -612,6 +613,7 @@ def gatherRepoMetadata(self):

def install(self):
progressQ.send_message(_('Starting package installation process'))
log_ana.info('Starting package installation process')

# Add the rpm macros to the global transaction environment
for macro in self.rpmMacros:
Expand All @@ -628,6 +630,7 @@ def install(self):

pkgs_to_download = self._base.transaction.install_set
log.info('Downloading packages.')
log_ana.info('Downloading packages.')
progressQ.send_message(_('Downloading packages'))
progress = DownloadProgress()
try:
Expand All @@ -641,6 +644,7 @@ def install(self):
log.info('Downloading packages finished.')

pre_msg = _("Preparing transaction from installation source")
log_ana.info("Preparing transaction from installation source")
progressQ.send_message(pre_msg)

queue_instance = multiprocessing.Queue()
Expand All @@ -658,6 +662,7 @@ def install(self):
_failure_limbo()

post_msg = _("Performing post-installation setup tasks")
log_ana.info("Performing post-installation setup tasks")
progressQ.send_message(post_msg)
process.join()
self._base.close()
Expand Down

0 comments on commit 35e3ce7

Please sign in to comment.