mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-20 13:05:49 +02:00
Reduce Slack Bot Log Spamming (#381)
This commit is contained in:
@@ -34,9 +34,9 @@ def respond_in_thread(
|
|||||||
raise ValueError("One of `text` or `blocks` must be provided")
|
raise ValueError("One of `text` or `blocks` must be provided")
|
||||||
|
|
||||||
if text:
|
if text:
|
||||||
logger.info(f"Trying to send message: {text}")
|
logger.debug(f"Trying to send message: {text}")
|
||||||
if blocks:
|
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)
|
slack_call = make_slack_api_rate_limited(client.chat_postMessage)
|
||||||
response = slack_call(
|
response = slack_call(
|
||||||
|
Reference in New Issue
Block a user