Fix Monolog constant use

Changed from WARN to WARNING in 1.0
594ed9cdcb,
looks like it was just a typo on our part (given the change happened in 2011)
This commit is contained in:
Ingo Schommer 2015-10-19 08:58:22 +13:00
parent 43b19f2d23
commit c8a0347b78
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ if(defined('SS_USE_BASIC_AUTH') && SS_USE_BASIC_AUTH) {
if(defined('SS_ERROR_LOG')) {
$logger = Injector::inst()->get('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 {
user_error("SS_ERROR_LOG setting only works with Monolog, you are using another logger", E_USER_WARNING);
}