Add a debug log for the webhook publisher
Without this, it is hard to tell from the logging if the notifier was ever called. Change-Id: I76c0259aee3ad65c1009730636da6d06e719548c
This commit is contained in:
parent
b01d6c6642
commit
9f03835d0b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue