Merge "Add a debug log for the webhook publisher"

This commit is contained in:
Zuul 2018-08-07 18:46:42 +00:00 committed by Gerrit Code Review
commit 6c42ff99d8
1 changed files with 2 additions and 0 deletions

View File

@ -32,5 +32,7 @@ class WebhookPublisher(base.NotificationPublisher):
resp = requests.post(url, data=json.dumps(data), headers=headers)
LOG.info("Webook request url=%s code=%s", url, resp.status_code)
if resp.status_code not in [http_client.OK, http_client.CREATED]:
raise Exception(resp.text)