diff --git a/src/Services/QueuedJobService.php b/src/Services/QueuedJobService.php index 9d0d0088..910d2f28 100644 --- a/src/Services/QueuedJobService.php +++ b/src/Services/QueuedJobService.php @@ -899,7 +899,9 @@ public function runJob($jobId) if (!$broken) { // Collect output where jobs aren't using the logger singleton ob_start(function ($buffer, $phase) use ($job, $jobDescriptor) { - $job->addMessage($buffer); + if (!empty($buffer)) { + $job->addMessage($buffer); + } if ($jobDescriptor) { $this->copyJobToDescriptor($job, $jobDescriptor); $jobDescriptor->write();