]> git.ipfire.org Git - pbs.git/commitdiff
jobs: Log success/failure
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 9 Mar 2023 14:21:50 +0000 (14:21 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 9 Mar 2023 14:21:50 +0000 (14:21 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/jobs.py

index dbea5f2c00a1544556781b78e2ee780af31ec007..3ab3e7bd8762f515c29dae1436c9dcdcdab95bab 100644 (file)
@@ -270,6 +270,11 @@ class Job(base.DataObject):
                """
                        Called when this job has finished
                """
+               if success:
+                       log.info("Job %s has finished successfully" % self)
+               else:
+                       log.error("Job %s has finished with an error" % self)
+
                # Store the time
                self._set_attribute_now("finished_at")