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
try:
self.worker(compose, cmd, num)
except Exception:
except Exception as exc:
if not compose.can_fail(variant, arch, 'iso'):
raise
else:
msg = ('[FAIL] Creating iso for variant %s, arch %s failed, but going on anyway.'
% (variant.uid, arch))
msg = ('[FAIL] Creating iso for variant %s, arch %s failed, but going on anyway.\n%s'
% (variant.uid, arch, exc))
self.pool.log_info(msg)
def worker(self, compose, cmd, num):

View File

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

View File

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

View File

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