Improve debugging at start of job

It would be really helpful if the name of the job is prominently
displayed in the debug log when the executor starts running it.

Right now the ref is not as useful as it should be, but that should
change when we finish moving away from zuul_ref.

The unique id is no longer required since we automatically prepend
it to every log entry.

Change-Id: Ic005771705c548d363868f70bab868564e24591c
changes/61/480761/1
James E. Blair 5 years ago
parent 6bc671a4ec
commit 534b06a09b
  1. 9
      zuul/executor/server.py

@ -739,12 +739,11 @@ class AnsibleJob(object):
self.log.exception("Error stopping SSH agent:")
def _execute(self):
self.log.debug("Job %s: beginning" % (self.job.unique,))
self.log.debug("Job %s: args: %s" % (self.job.unique,
self.job.arguments,))
self.log.debug("Job %s: job root at %s" %
(self.job.unique, self.jobdir.root))
args = json.loads(self.job.arguments)
self.log.debug("Beginning job %s for ref %s" %
(self.job.name, args['vars']['zuul']['ref']))
self.log.debug("Args: %s" % (self.job.arguments,))
self.log.debug("Job root: %s" % (self.jobdir.root,))
tasks = []
projects = set()

Loading…
Cancel
Save