From b703099c1947d26764a8e936ecb9ea58e15fbd63 Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Tue, 26 Nov 2013 23:25:43 +0100 Subject: Corrige bug Minz_Log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Les logs de niveau ERROR n'étaient plus loggués en production (alors que c'est quand même leur but ;)) --- lib/minz/Minz_Log.php | 2 +- lib/minz/dao/Model_pdo.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/minz/Minz_Log.php b/lib/minz/Minz_Log.php index e66cc040b..12005aa88 100644 --- a/lib/minz/Minz_Log.php +++ b/lib/minz/Minz_Log.php @@ -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'; } diff --git a/lib/minz/dao/Model_pdo.php b/lib/minz/dao/Model_pdo.php index 810e69847..545f59e81 100755 --- a/lib/minz/dao/Model_pdo.php +++ b/lib/minz/dao/Model_pdo.php @@ -66,7 +66,7 @@ class Model_pdo { } catch (Exception $e) { throw new PDOConnectionException ( $string, - $db['user'], MinzException::WARNING + $db['user'], MinzException::ERROR ); } } -- cgit v1.2.3