executor: change execution log to INFO

This change adds an info log to record the job name and the change url.

Change-Id: I6729454882883e4b1ddc21891791d0215d7dd60b
This commit is contained in:
Tristan Cacqueray 2018-06-28 07:07:27 +00:00
parent 9f616815c8
commit dd114050e6
1 changed files with 5 additions and 2 deletions

View File

@ -690,8 +690,11 @@ class AnsibleJob(object):
def _execute(self): def _execute(self):
args = json.loads(self.job.arguments) args = json.loads(self.job.arguments)
self.log.debug("Beginning job %s for ref %s" % self.log.info(
(self.job.name, args['zuul']['ref'])) "Beginning job %s for ref %s (change %s)" % (
args['zuul']['job'],
args['zuul']['ref'],
args['zuul']['change_url']))
self.log.debug("Job root: %s" % (self.jobdir.root,)) self.log.debug("Job root: %s" % (self.jobdir.root,))
tasks = [] tasks = []
projects = set() projects = set()