mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
add debug info for failed slack notification
This commit is contained in:
@@ -55,7 +55,7 @@ class SlackBackend(AWXBaseEmailBackend):
|
|||||||
if ret['ok']:
|
if ret['ok']:
|
||||||
sent_messages += 1
|
sent_messages += 1
|
||||||
else:
|
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:
|
except Exception as e:
|
||||||
logger.error(smart_text(_("Exception sending messages: {}").format(e)))
|
logger.error(smart_text(_("Exception sending messages: {}").format(e)))
|
||||||
if not self.fail_silently:
|
if not self.fail_silently:
|
||||||
|
|||||||
Reference in New Issue
Block a user