Corrige bug Minz_Log

Les logs de niveau ERROR n'étaient plus loggués en production (alors que
c'est quand même leur but ;))
This commit is contained in:
Marien Fressinaud
2013-11-26 23:25:43 +01:00
parent 29e7babed8
commit b703099c19
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ class Minz_Log {
if (! ($env === Configuration::SILENT
|| ($env === Configuration::PRODUCTION
&& ($level <= Minz_Log::NOTICE)))) {
&& ($level >= Minz_Log::NOTICE)))) {
if (is_null ($file_name)) {
$file_name = LOG_PATH . '/application.log';
}

View File

@@ -66,7 +66,7 @@ class Model_pdo {
} catch (Exception $e) {
throw new PDOConnectionException (
$string,
$db['user'], MinzException::WARNING
$db['user'], MinzException::ERROR
);
}
}