mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-10-20 05:15:31 +00:00
fix(slack): avoid logging block text previews
This commit is contained in:
parent
93102e91cf
commit
ece3dd1a4f
2 changed files with 48 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue