Skip to content

Commit

Permalink
fix issue with title length when large error messages appear
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Dec 12, 2019
1 parent 78af87b commit 6520705
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/behaviors/QueueLogBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ public function afterError(ExecEvent $event)
if ($event->error) {
$title.= " | " . $event->error->getMessage();
}
$log->updateAttributes(['end_timestamp' => time(), 'title' => $title, 'is_error' => true]);
$log->updateAttributes(['end_timestamp' => time(), 'is_error' => true]);

// ensure title length validation.
// admin 3.0 is required to add new log message table with text instead of string.
$log->title = $title;
$log->save();
}

// send error
Expand Down

0 comments on commit 6520705

Please sign in to comment.