summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDougal Matthews <dougal@redhat.com>2018-07-24 10:39:00 +0100
committerDougal Matthews <dougal@redhat.com>2018-07-30 10:05:47 +0100
commit9f03835d0b976b684241dff80c361d435c9de13b (patch)
tree0273f77bb12b86553d7f787ad01d7143d26b17fa
parentb01d6c6642b01461851aee5ac7709185c478e320 (diff)
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
Notes
Notes (review): Code-Review+1: Toure Dunnon <toure@redhat.com> Code-Review+2: Vitalii Solodilov <Mcdkr@yandex.ru> Code-Review+2: Renat Akhmerov <renat.akhmerov@gmail.com> Workflow+1: Renat Akhmerov <renat.akhmerov@gmail.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 07 Aug 2018 18:46:42 +0000 Reviewed-on: https://review.openstack.org/587001 Project: openstack/mistral Branch: refs/heads/master
-rw-r--r--mistral/notifiers/publishers/webhook.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mistral/notifiers/publishers/webhook.py b/mistral/notifiers/publishers/webhook.py
index 0067433..a867f0a 100644
--- a/mistral/notifiers/publishers/webhook.py
+++ b/mistral/notifiers/publishers/webhook.py
@@ -32,5 +32,7 @@ class WebhookPublisher(base.NotificationPublisher):
32 32
33 resp = requests.post(url, data=json.dumps(data), headers=headers) 33 resp = requests.post(url, data=json.dumps(data), headers=headers)
34 34
35 LOG.info("Webook request url=%s code=%s", url, resp.status_code)
36
35 if resp.status_code not in [http_client.OK, http_client.CREATED]: 37 if resp.status_code not in [http_client.OK, http_client.CREATED]:
36 raise Exception(resp.text) 38 raise Exception(resp.text)