Spaces:
Runtime error
Runtime error
Update notify_slack.py
Browse files- notify_slack.py +2 -2
notify_slack.py
CHANGED
|
@@ -4,9 +4,9 @@ import streamlit as st
|
|
| 4 |
SLACK_WEBHOOK_URL = st.secrets["SLACK_WEBHOOK_URL"]
|
| 5 |
|
| 6 |
def send_slack_alert(log_message, s3_link=None):
|
| 7 |
-
text = f"
|
| 8 |
if s3_link:
|
| 9 |
-
text += f"\n
|
| 10 |
|
| 11 |
payload = {"text": text}
|
| 12 |
|
|
|
|
| 4 |
SLACK_WEBHOOK_URL = st.secrets["SLACK_WEBHOOK_URL"]
|
| 5 |
|
| 6 |
def send_slack_alert(log_message, s3_link=None):
|
| 7 |
+
text = f" *Critical Log Alert*\n```{log_message}```"
|
| 8 |
if s3_link:
|
| 9 |
+
text += f"\n [Runbook]({s3_link})"
|
| 10 |
|
| 11 |
payload = {"text": text}
|
| 12 |
|