Log more details about failed deliverable

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2016-02-08 12:06:47 +01:00
parent 3baa386ed4
commit d661de3e73
4 changed files with 12 additions and 12 deletions

View File

@ -220,12 +220,12 @@ class CreateIsoThread(WorkerThread):
compose, cmd, variant, arch = item compose, cmd, variant, arch = item
try: try:
self.worker(compose, cmd, num) self.worker(compose, cmd, num)
except Exception: except Exception as exc:
if not compose.can_fail(variant, arch, 'iso'): if not compose.can_fail(variant, arch, 'iso'):
raise raise
else: else:
msg = ('[FAIL] Creating iso for variant %s, arch %s failed, but going on anyway.' msg = ('[FAIL] Creating iso for variant %s, arch %s failed, but going on anyway.\n%s'
% (variant.uid, arch)) % (variant.uid, arch, exc))
self.pool.log_info(msg) self.pool.log_info(msg)
def worker(self, compose, cmd, num): def worker(self, compose, cmd, num):

View File

@ -144,12 +144,12 @@ class CreateImageBuildThread(WorkerThread):
compose, cmd = item compose, cmd = item
try: try:
self.worker(num, compose, cmd) self.worker(num, compose, cmd)
except: except Exception as exc:
if not compose.can_fail(cmd['image_conf']['variant'], '*', 'image-build'): if not compose.can_fail(cmd['image_conf']['variant'], '*', 'image-build'):
raise raise
else: else:
msg = ('[FAIL] image-build for variant %s failed, but going on anyway.' msg = ('[FAIL] image-build for variant %s failed, but going on anyway.\n%s'
% cmd['image_conf']['variant']) % (cmd['image_conf']['variant'], exc))
self.pool.log_info(msg) self.pool.log_info(msg)
def worker(self, num, compose, cmd): def worker(self, num, compose, cmd):

View File

@ -172,12 +172,12 @@ class CreateLiveImageThread(WorkerThread):
compose, cmd, variant, arch = item compose, cmd, variant, arch = item
try: try:
self.worker(compose, cmd, variant, arch, num) self.worker(compose, cmd, variant, arch, num)
except: except Exception as exc:
if not compose.can_fail(variant, arch, 'live'): if not compose.can_fail(variant, arch, 'live'):
raise raise
else: else:
msg = ('[FAIL] Creating live image for variant %s, arch %s failed, but going on anyway.' msg = ('[FAIL] Creating live image for variant %s, arch %s failed, but going on anyway.\n%s'
% (variant.uid, arch)) % (variant.uid, arch, exc))
self.pool.log_info(msg) self.pool.log_info(msg)
def worker(self, compose, cmd, variant, arch, num): def worker(self, compose, cmd, variant, arch, num):

View File

@ -99,12 +99,12 @@ class LiveMediaThread(WorkerThread):
self.num = num self.num = num
try: try:
self.worker(compose, variant, config) self.worker(compose, variant, config)
except: except Exception as exc:
if not compose.can_fail(variant, '*', 'live-media'): if not compose.can_fail(variant, '*', 'live-media'):
raise raise
else: else:
msg = ('[FAIL] live-media for variant %s failed, but going on anyway.' msg = ('[FAIL] live-media for variant %s failed, but going on anyway.\n%s'
% variant.uid) % (variant.uid, exc))
self.pool.log_info(msg) self.pool.log_info(msg)
def _get_log_file(self, compose, variant, config): def _get_log_file(self, compose, variant, config):