mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Stating to move loggers to the new folder
This commit is contained in:
parent
6b40c9c854
commit
ff8b1a1041
4 changed files with 3 additions and 8 deletions
|
@ -21,6 +21,7 @@
|
|||
*/
|
||||
|
||||
App::uses('Debugger', 'Utility');
|
||||
App::uses('CakeLog', 'Log');
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -109,9 +110,6 @@ class ErrorHandler {
|
|||
App::import('Core', 'error/ExceptionRenderer');
|
||||
$config = Configure::read('Exception');
|
||||
if (!empty($config['log'])) {
|
||||
if (!class_exists('CakeLog')) {
|
||||
require LIBS . 'cake_log.php';
|
||||
}
|
||||
CakeLog::write(LOG_ERR, '[' . get_class($exception) . '] ' . $exception->getMessage());
|
||||
}
|
||||
if ($config['renderer'] !== 'ExceptionRenderer') {
|
||||
|
@ -158,9 +156,6 @@ class ErrorHandler {
|
|||
);
|
||||
return Debugger::getInstance()->outputError($data);
|
||||
} else {
|
||||
if (!class_exists('CakeLog')) {
|
||||
require LIBS . 'cake_log.php';
|
||||
}
|
||||
$message = $error . ' (' . $code . '): ' . $description . ' in [' . $file . ', line ' . $line . ']';
|
||||
if (!empty($errorConfig['trace'])) {
|
||||
$trace = Debugger::trace(array('start' => 1, 'format' => 'log'));
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
/**
|
||||
* Included libraries.
|
||||
*/
|
||||
App::uses('L10n', 'Core');
|
||||
App::uses('Multibyte', 'Core');
|
||||
App::uses('L10n', 'I18n');
|
||||
App::uses('Multibyte', 'I18n');
|
||||
|
||||
/**
|
||||
* I18n handles translation of Text and time format strings.
|
||||
|
|
Loading…
Add table
Reference in a new issue