mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 11:32:40 +00:00
using the domain cake_error for messages intended for the developer
This commit is contained in:
parent
f95340b361
commit
b19ca3c95e
3 changed files with 6 additions and 6 deletions
|
@ -82,7 +82,7 @@ class CakeLog {
|
|||
*/
|
||||
public static function config($key, $config) {
|
||||
if (empty($config['engine'])) {
|
||||
throw new CakeLogException(__d('cake', 'Missing logger classname'));
|
||||
throw new CakeLogException(__d('cake_error', 'Missing logger classname'));
|
||||
}
|
||||
$loggerName = $config['engine'];
|
||||
unset($config['engine']);
|
||||
|
@ -90,7 +90,7 @@ class CakeLog {
|
|||
$logger = new $className($config);
|
||||
if (!$logger instanceof CakeLogInterface) {
|
||||
throw new CakeLogException(sprintf(
|
||||
__d('cake', 'logger class %s does not implement a write method.'), $loggerName
|
||||
__d('cake_error', 'logger class %s does not implement a write method.'), $loggerName
|
||||
));
|
||||
}
|
||||
self::$_streams[$key] = $logger;
|
||||
|
@ -109,7 +109,7 @@ class CakeLog {
|
|||
|
||||
App::uses($loggerName, $plugin . 'Log/Engine');
|
||||
if (!class_exists($loggerName)) {
|
||||
throw new CakeLogException(__d('cake', 'Could not load class %s', $loggerName));
|
||||
throw new CakeLogException(__d('cake_error', 'Could not load class %s', $loggerName));
|
||||
}
|
||||
return $loggerName;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue