private function handleError(\Exception $e, $interimName)
    {
        // Console feedback
        $this->output->writeln('<error>A ' . $interimName . ' job failed. The exception returned was:</error>');
        $this->output->writeln('<error>    ' . $e->getMessage() . '</error>');
        $this->output->writeln('<error>Backtrace:</error>');
        $this->output->writeln('<error>' . $e->getTraceAsString() . '</error>');

        // Application log
        $this->app['logger.system']->error("$interimName job failed: " . substr($e->getTraceAsString(), 0, 1024), ['event' => 'cron']);
    }
private function handleError(\Exception $e, $interimName)
    {
        // Console feedback
        $this->output->writeln('<error>A ' . $interimName . ' job failed. The exception returned was:</error>');
        $this->output->writeln('<error>    ' . $e->getMessage() . '</error>');
        $this->output->writeln('<error>Backtrace:</error>');
        $this->output->writeln('<error>' . $e->getTraceAsString() . '</error>');

        // Application log
        $this->app['logger.system']->error("$interimName job failed: " . substr($e->getTraceAsString(), 0, 1024), ['event' => 'cron']);
    }
private function handleError ( \ Exception $ e , $ interimName ) { // Console feedback $ this -> output -> writeln ( '<error>A ' . $ interimName . ' job failed. The exception returned was:</error>' ) ; $ this -> output -> writeln ( '<error>    ' . $ e -> getMessage ( ) . '</error>' ) ; $ this -> output -> writeln ( '<error>Backtrace:</error>' ) ; $ this -> output -> writeln ( '<error>' . $ e -> getTraceAsString ( ) . '</error>' ) ; // Application log $ this -> app [ 'logger.system' ] -> error ( "$interimName job failed: " . substr ( $ e -> getTraceAsString ( ) , 0 , 1024 ) , [ 'event' => 'cron' ] ) ; }
Provide feedback on exceptions in cron jobs.

@param \Exception $e           The passed exception
@param string     $interimName The cron handler name
Provide feedback on exceptions in cron jobs .