diff options
author | Zuul <zuul@review.openstack.org> | 2018-08-07 18:46:42 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2018-08-07 18:46:42 +0000 |
commit | 6c42ff99d8deb1af37a12a4ac0efd6bfeca5dc66 (patch) | |
tree | 86082b821135ec09212148e271dc3d71e5e5f1a2 | |
parent | df16c941fcdbdad7d70f6ec02abf2dbf4a155b49 (diff) | |
parent | 9f03835d0b976b684241dff80c361d435c9de13b (diff) |
Merge "Add a debug log for the webhook publisher"
-rw-r--r-- | mistral/notifiers/publishers/webhook.py | 2 |
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) |