From: Michael Tremer Date: Mon, 8 May 2023 13:55:50 +0000 (+0000) Subject: builds: Log whether they have finished successfully or not X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be7554075d2b0efd8d6acb9fd6423c669f2cfffa;p=pbs.git builds: Log whether they have finished successfully or not Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/builds.py b/src/buildservice/builds.py index 4c3973fc..c931aa1d 100644 --- a/src/buildservice/builds.py +++ b/src/buildservice/builds.py @@ -629,6 +629,12 @@ class Build(base.DataObject): """ Called when this build has successfully finished """ + # Log this + if success: + log.info("Build %s has finished" % self) + else: + log.error("Build %s has failed" % self) + # Mark as finished self._set_attribute_now("finished_at")