From 24c3903c3097c789266cc6eeb46acf1795c24550 Mon Sep 17 00:00:00 2001 From: Jim Ladd Date: Wed, 14 Aug 2019 10:35:04 -0700 Subject: [PATCH] add debug info for failed slack notification --- awx/main/notifications/slack_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/notifications/slack_backend.py b/awx/main/notifications/slack_backend.py index 983fb73cf5..24b7876708 100644 --- a/awx/main/notifications/slack_backend.py +++ b/awx/main/notifications/slack_backend.py @@ -55,7 +55,7 @@ class SlackBackend(AWXBaseEmailBackend): if ret['ok']: sent_messages += 1 else: - raise RuntimeError("Slack Notification unable to send {}: {}".format(r, m.subject)) + raise RuntimeError("Slack Notification unable to send {}: {} ({})".format(r, m.subject, ret['error'])) except Exception as e: logger.error(smart_text(_("Exception sending messages: {}").format(e))) if not self.fail_silently: