diff --git a/cake/libs/cake_log.php b/cake/libs/cake_log.php index e4de23d02..9a38084c6 100644 --- a/cake/libs/cake_log.php +++ b/cake/libs/cake_log.php @@ -41,9 +41,6 @@ if (!defined('LOG_WARNING')) { define('LOG_WARNING', 3); } - if (!defined('LOG_ERR')) { - define('LOG_ERR', LOG_ERROR); - } if (!defined('LOG_NOTICE')) { define('LOG_NOTICE', 4); } @@ -69,6 +66,12 @@ class CakeLog { * @access public */ function write($type, $msg) { + if (!defined('LOG_ERROR')) { + define('LOG_ERROR', 2); + } + if (!defined('LOG_ERR')) { + define('LOG_ERR', LOG_ERROR); + } $levels = array( LOG_WARNING => 'warning', LOG_NOTICE => 'notice',