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:
Dougal Matthews 2018-07-24 10:39:00 +01:00
parent b01d6c6642
commit 9f03835d0b
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)