From 519efd8ea354d6a477df19ed967f24f4718c0a5a Mon Sep 17 00:00:00 2001 From: lucasrcosta Date: Wed, 25 Sep 2013 18:06:23 -0300 Subject: [PATCH] Updated SlimCollector severity levels Updated $map array on line 49 according to Slim's current PSR-3 severity levels. --- src/DebugBar/Bridge/SlimCollector.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/DebugBar/Bridge/SlimCollector.php b/src/DebugBar/Bridge/SlimCollector.php index 0176a7f..be1caa6 100644 --- a/src/DebugBar/Bridge/SlimCollector.php +++ b/src/DebugBar/Bridge/SlimCollector.php @@ -47,10 +47,14 @@ class SlimCollector extends MessagesCollector protected function getLevelName($level) { $map = array( - Log::FATAL => LogLevel::EMERGENCY, + Log::EMERGENCY => LogLevel::EMERGENCY, + Log::ALERT => LogLevel::ALERT, + Log::CRITICAL => LogLevel::CRITICAL, Log::ERROR => LogLevel::ERROR, Log::WARN => LogLevel::WARNING, - Log::INFO => LogLevel::INFO + Log::NOTICE => LogLevel::NOTICE, + Log::INFO => LogLevel::INFO, + Log::DEBUG => LogLevel::DEBUG ); return $map[$level]; } @@ -59,4 +63,4 @@ class SlimCollector extends MessagesCollector { return 'slim'; } -} \ No newline at end of file +}