mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
loading the ExceptionRenderer
This commit is contained in:
parent
80452397b6
commit
e3f85ccda8
2 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Reference in a new issue