From ce27b53bb43781f3fddb332bc0dc1657fd44278a Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: May 04 2022 11:41:37 +0000 Subject: backend: dump Resalloc ticket ID and hostname to backend.log It is sometimes pretty hard to pair the existing backend/builder-live logs with appropriate resalloc ticket. This should make it a bit easier. --- diff --git a/backend/copr_backend/background_worker_build.py b/backend/copr_backend/background_worker_build.py index 6bcff50..991e61a 100644 --- a/backend/copr_backend/background_worker_build.py +++ b/backend/copr_backend/background_worker_build.py @@ -403,6 +403,7 @@ class BuildBackgroundWorker(BackgroundWorker): if self.canceled: raise BuildCanceled if success: + self.log.info("Allocated host %s", self.host.info) self.last_hostname = self.host.hostname return time.sleep(60)