From 9f03835d0b976b684241dff80c361d435c9de13b Mon Sep 17 00:00:00 2001 From: Dougal Matthews Date: Tue, 24 Jul 2018 10:39:00 +0100 Subject: [PATCH] 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 --- mistral/notifiers/publishers/webhook.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mistral/notifiers/publishers/webhook.py b/mistral/notifiers/publishers/webhook.py index 0067433d4..a867f0ac9 100644 --- a/mistral/notifiers/publishers/webhook.py +++ b/mistral/notifiers/publishers/webhook.py @@ -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)