From c8a0347b78af0e643b1fd3032d100f8e7ed55ee2 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 19 Oct 2015 08:58:22 +1300 Subject: [PATCH] Fix Monolog constant use Changed from WARN to WARNING in 1.0 https://github.com/Seldaek/monolog/commit/594ed9cdcb4b376289c65478ec201555130f0577, looks like it was just a typo on our part (given the change happened in 2011) --- conf/ConfigureFromEnv.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf/ConfigureFromEnv.php b/conf/ConfigureFromEnv.php index 2a6d44ba9..d514cc9b8 100644 --- a/conf/ConfigureFromEnv.php +++ b/conf/ConfigureFromEnv.php @@ -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); }