loading the ExceptionRenderer

This commit is contained in:
José Lorenzo Rodríguez 2010-12-04 14:06:30 -04:30
parent 80452397b6
commit e3f85ccda8
2 changed files with 1 additions and 1 deletions

View file

@ -22,6 +22,7 @@
App::uses('Debugger', 'Utility'); App::uses('Debugger', 'Utility');
App::uses('CakeLog', 'Log'); App::uses('CakeLog', 'Log');
App::uses('ExceptionRenderer', 'Error');
/** /**
* *
@ -107,7 +108,6 @@ class ErrorHandler {
* @see http://php.net/manual/en/function.set-exception-handler.php * @see http://php.net/manual/en/function.set-exception-handler.php
*/ */
public static function handleException(Exception $exception) { public static function handleException(Exception $exception) {
App::import('Core', 'error/ExceptionRenderer');
$config = Configure::read('Exception'); $config = Configure::read('Exception');
if (!empty($config['log'])) { if (!empty($config['log'])) {
CakeLog::write(LOG_ERR, '[' . get_class($exception) . '] ' . $exception->getMessage()); CakeLog::write(LOG_ERR, '[' . get_class($exception) . '] ' . $exception->getMessage());