Improve merge client logging

When submitting a job to the mergers, log more information about
the job.  Specifically the UUID will now be included for easier
cross-correlation with completion events.

Change-Id: Id92ae0c73f725da23761c59c97f0d39d64e802a9
This commit is contained in:
James E. Blair 2015-03-10 11:01:36 -07:00
parent bc12127081
commit b1afc8089f
1 changed files with 1 additions and 1 deletions

View File

@ -84,10 +84,10 @@ class MergeClient(object):
def submitJob(self, name, data, build_set,
precedence=zuul.model.PRECEDENCE_NORMAL):
uuid = str(uuid4().hex)
self.log.debug("Submitting job %s with data %s" % (name, data))
job = gear.Job(name,
json.dumps(data),
unique=uuid)
self.log.debug("Submitting job %s with data %s" % (job, data))
self.build_sets[uuid] = build_set
self.gearman.submitJob(job, precedence=precedence,
timeout=300)