Reduce Slack Bot Log Spamming (#381)

This commit is contained in:
Yuhong Sun
2023-09-01 10:43:57 -07:00
committed by GitHub
parent b89a06f03b
commit 493648d28b

View File

@@ -34,9 +34,9 @@ def respond_in_thread(
raise ValueError("One of `text` or `blocks` must be provided")
if text:
logger.info(f"Trying to send message: {text}")
logger.debug(f"Trying to send message: {text}")
if blocks:
logger.info(f"Trying to send blocks: {blocks}")
logger.debug(f"Trying to send blocks: {blocks}")
slack_call = make_slack_api_rate_limited(client.chat_postMessage)
response = slack_call(