mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-04 20:27:31 +02:00
Merge pull request #1311 from Nyholm/patch-1
Dont use more than 2000 chars for slack attachments field
This commit is contained in:
@@ -223,7 +223,7 @@ class SlackRecord
|
||||
private function generateAttachmentField(string $title, $value): array
|
||||
{
|
||||
$value = is_array($value)
|
||||
? sprintf('```%s```', $this->stringify($value))
|
||||
? sprintf('```%s```', substr($this->stringify($value), 0, 1990))
|
||||
: $value;
|
||||
|
||||
return array(
|
||||
|
Reference in New Issue
Block a user