fix(slack): avoid logging block text previews

This commit is contained in:
luyifan 2026-07-05 03:49:38 +08:00 • committed by Teknium
parent 93102e91cf
commit ece3dd1a4f
2 changed files with 48 additions and 2 deletions

View file

@ -4419,8 +4419,8 @@ class SlackAdapter(BasePlatformAdapter):
if stripped_blocks and stripped_blocks not in text.strip():
logger.debug(
"Slack: extracted additional text from blocks "
"(likely quoted/forwarded content): %s",
stripped_blocks[:300],
"(likely quoted/forwarded content; chars=%d)",
len(stripped_blocks),
)
text = (text.strip() + "\n" + stripped_blocks).strip()