Skip to content

Commit

Permalink
Log jobCode when writing to log with no callback for easier debug
Browse files Browse the repository at this point in the history
  • Loading branch information
csdougliss committed Dec 4, 2018
1 parent ab30035 commit 488441f
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('No callbacks found for cron job %s', $jobCode);
}
$model = $this->_objectManager->create($jobConfig['instance']);
$callback = [$model, $jobConfig['method']];
Expand Down

0 comments on commit 488441f

Please sign in to comment.