Skip to content

Commit

Permalink
ENGCOM-3615: Log jobCode when writing to log with no callback for eas…
Browse files Browse the repository at this point in the history
…ier debug #19541
  • Loading branch information
sidolov authored Dec 9, 2018
2 parents 6e0b654 + 179a4d3 commit dbd1680
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ protected function _runJob($scheduledTime, $currentTime, $jobConfig, $schedule,

if (!isset($jobConfig['instance'], $jobConfig['method'])) {
$schedule->setStatus(Schedule::STATUS_ERROR);
throw new \Exception('No callbacks found');
throw new \Exception(sprintf('No callbacks found for cron job %s', $jobCode));
}
$model = $this->_objectManager->create($jobConfig['instance']);
$callback = [$model, $jobConfig['method']];
Expand Down

0 comments on commit dbd1680

Please sign in to comment.