Merge pull request #4687 from chillu/pulls/4.0/monolog-warning-constant

Fix Monolog constant use
This commit is contained in:
Loz Calver 2015-10-19 11:56:59 +01:00
commit 1167802b79

View File

@ -144,7 +144,7 @@ if(defined('SS_USE_BASIC_AUTH') && SS_USE_BASIC_AUTH) {
if(defined('SS_ERROR_LOG')) { if(defined('SS_ERROR_LOG')) {
$logger = Injector::inst()->get('Logger'); $logger = Injector::inst()->get('Logger');
if($logger instanceof Logger) { if($logger instanceof Logger) {
$logger->pushHandler(new StreamHandler(BASE_PATH . '/' . SS_ERROR_LOG, Logger::WARN)); $logger->pushHandler(new StreamHandler(BASE_PATH . '/' . SS_ERROR_LOG, Logger::WARNING));
} else { } else {
user_error("SS_ERROR_LOG setting only works with Monolog, you are using another logger", E_USER_WARNING); user_error("SS_ERROR_LOG setting only works with Monolog, you are using another logger", E_USER_WARNING);
} }