From ac50479e56f1a228710a1977c2163dde99f7be49 Mon Sep 17 00:00:00 2001 From: David Shrewsbury Date: Tue, 23 Jul 2019 13:52:15 -0400 Subject: [PATCH] Add build ID to failure message The build ID is useful for associating log entries. Change-Id: I5951411e04d065af5ba3bac0b27e326588683f2e --- nodepool/builder.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nodepool/builder.py b/nodepool/builder.py index c9152c22a..0719c92e8 100755 --- a/nodepool/builder.py +++ b/nodepool/builder.py @@ -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