From 06b1f5775561000d6e3e606b1ff4dcd6015a7a1d Mon Sep 17 00:00:00 2001 From: Ayumi <57409060+ayumi-cloud@users.noreply.github.com> Date: Thu, 16 Jan 2020 12:37:38 +0000 Subject: [PATCH] Expand the character limit of error messages in Event log list (#4830) --- modules/system/models/EventLog.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/system/models/EventLog.php b/modules/system/models/EventLog.php index a4b53795d..ae6a5616f 100644 --- a/modules/system/models/EventLog.php +++ b/modules/system/models/EventLog.php @@ -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); } }