1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 13:16:39 +02:00

Dont use more than 2000 chars for slack attachments field

This commit is contained in:
Tobias Nyholm
2019-04-04 13:46:58 +02:00
committed by GitHub
parent ebb804e432
commit b95129216d

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(