mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-19 12:03:54 +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")
|
||||
|
||||
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(
|
||||
|
Reference in New Issue
Block a user