Expand the character limit of error messages in Event log list (#4830)

This commit is contained in:
Ayumi 2020-01-16 12:37:38 +00:00 committed by Ben Thomson
parent c046466913
commit 06b1f57755
1 changed files with 4 additions and 1 deletions

View File

@ -85,6 +85,9 @@ class EventLog extends Model
return $match[1];
}
return Str::limit($this->message, 100);
// Get first line of message
preg_match('/^([^\n\r]+)/m', $this->message, $matches);
return Str::limit($matches[1] ?? '', 500);
}
}