Browse Source

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
tags/7.0.0.0rc1
Dougal Matthews 11 months ago
parent
commit
9f03835d0b
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      mistral/notifiers/publishers/webhook.py

+ 2
- 0
mistral/notifiers/publishers/webhook.py View File

@@ -32,5 +32,7 @@ class WebhookPublisher(base.NotificationPublisher):
32 32
 
33 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 37
         if resp.status_code not in [http_client.OK, http_client.CREATED]:
36 38
             raise Exception(resp.text)

Loading…
Cancel
Save