We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8bf588 commit 069f3d1Copy full SHA for 069f3d1
anomstack/alerts/slack.py
@@ -106,7 +106,7 @@ def send_alert_slack(
106
logger.error(f"Channel {channel_name} not found.")
107
return
108
except SlackApiError as e:
109
- logger.error(f"Error fetching channel ID: {e.response['error']}")
+ logger.error(f"Error fetching channel ID: {e}")
110
111
112
try:
@@ -123,7 +123,7 @@ def send_alert_slack(
123
channel=channel_id, text=f"*{title}*\n{message}"
124
)
125
126
- logger.error(f"Error sending message to Slack: {e.response['error']}")
+ logger.error(f"Error sending message to Slack channel {channel_name, channel_id}: {e}")
127
128
129
def send_alert_slack_with_plot(
0 commit comments