get('logger');
$logger->error($e);
}
} catch (Exception $ex) {
// Nothing to do
}
try {
// Attempt to raise any error, gracefully
Dispatcher::raiseError($e);
} catch (Exception $e) {
if (Configure::get('System.debug')) {
echo $e->getMessage() . ' on line ' . $e->getLine() .
' in ' . $e->getFile() . "\n" .
'
Printing Stack Trace:
' . nl2br($e->getTraceAsString());
} else {
echo $e->getMessage();
}
}
}
$end = microtime(true);
// Display rendering time if benchmarking is enabled
if (Configure::get('System.benchmark')) {
echo 'execution time: ' . ($end - $start) . ' seconds';
}