Merge "Add a debug log for the webhook publisher"
This commit is contained in:
commit
6c42ff99d8
|
@ -32,5 +32,7 @@ class WebhookPublisher(base.NotificationPublisher):
|
||||||
|
|
||||||
resp = requests.post(url, data=json.dumps(data), headers=headers)
|
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]:
|
if resp.status_code not in [http_client.OK, http_client.CREATED]:
|
||||||
raise Exception(resp.text)
|
raise Exception(resp.text)
|
||||||
|
|
Loading…
Reference in New Issue