1
0
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:
Jordi Boggiano
2019-07-01 17:09:37 +02:00
committed by GitHub

View File

@@ -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(