Add build ID to failure message

The build ID is useful for associating log entries.

Change-Id: I5951411e04d065af5ba3bac0b27e326588683f2e
This commit is contained in:
David Shrewsbury 2019-07-23 13:52:15 -04:00
parent 69613c7a07
commit ac50479e56
1 changed files with 3 additions and 2 deletions

View File

@ -1059,8 +1059,9 @@ class UploadWorker(BaseWorker):
sha256=image.sha256,
)
except Exception:
self.log.exception("Failed to upload image %s to provider %s" %
(image_name, provider.name))
self.log.exception(
"Failed to upload build %s of image %s to provider %s" %
(build_id, image_name, provider.name))
data = zk.ImageUpload()
data.state = zk.FAILED
return data