diff --git a/cake/console/libs/console_error_handler.php b/cake/console/libs/console_error_handler.php index 0ee83ae43..f70e34e6d 100644 --- a/cake/console/libs/console_error_handler.php +++ b/cake/console/libs/console_error_handler.php @@ -70,10 +70,6 @@ class ConsoleErrorHandler extends ErrorHandler { * @return void */ public static function handleError($code, $description, $file = null, $line = null, $context = null) { - $errorConfig = Configure::read('Error'); - if (isset($errorConfig['level']) && ($code & ~$errorConfig['level'])) { - return; - } $stderr = self::getStderr(); list($name, $log) = self::_mapErrorCode($code); $message = sprintf(__('%s in [%s, line %s]'), $description, $file, $line); diff --git a/cake/console/shell_dispatcher.php b/cake/console/shell_dispatcher.php index 67fe4f37e..3037b8d4f 100644 --- a/cake/console/shell_dispatcher.php +++ b/cake/console/shell_dispatcher.php @@ -145,7 +145,7 @@ class ShellDispatcher { } require_once CONSOLE_LIBS . 'console_error_handler.php'; set_exception_handler(array('ConsoleErrorHandler', 'handleException')); - set_error_handler(array('ConsoleErrorHandler', 'handleError')); + set_error_handler(array('ConsoleErrorHandler', 'handleError'), Configure::read('Error.level')); if (!defined('FULL_BASE_URL')) { define('FULL_BASE_URL', '/');