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
This commit is contained in:
parent
6bc671a4ec
commit
534b06a09b
|
@ -739,12 +739,11 @@ class AnsibleJob(object):
|
||||||
self.log.exception("Error stopping SSH agent:")
|
self.log.exception("Error stopping SSH agent:")
|
||||||
|
|
||||||
def _execute(self):
|
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)
|
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 = []
|
tasks = []
|
||||||
projects = set()
|
projects = set()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue