Merge "Log github delivery ids properly"
This commit is contained in:
commit
f4e97aa5b2
|
@ -1085,7 +1085,9 @@ class FakeGithubConnection(githubconnection.GithubConnection):
|
|||
payload = json.dumps(data).encode('utf8')
|
||||
secret = self.connection_config['webhook_token']
|
||||
signature = githubconnection._sign_request(payload, secret)
|
||||
headers = {'x-github-event': name, 'x-hub-signature': signature}
|
||||
headers = {'x-github-event': name,
|
||||
'x-hub-signature': signature,
|
||||
'x-github-delivery': str(uuid.uuid4())}
|
||||
|
||||
if use_zuulweb:
|
||||
return requests.post(
|
||||
|
|
|
@ -110,7 +110,7 @@ class GithubGearmanWorker(object):
|
|||
headers = args.get("headers")
|
||||
body = args.get("body")
|
||||
|
||||
delivery = headers.get('X-GitHub-Delivery')
|
||||
delivery = headers.get('x-github-delivery')
|
||||
self.log.debug("Github Webhook Received: {delivery}".format(
|
||||
delivery=delivery))
|
||||
|
||||
|
|
Loading…
Reference in New Issue