1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 13:28:35 +01:00

Merge pull request #30 from lucasrcosta/master

Updated SlimCollector severity levels
This commit is contained in:
Maxime Bouroumeau-Fuseau 2013-09-25 14:08:39 -07:00
commit ee3e1f2371

View File

@ -47,10 +47,14 @@ class SlimCollector extends MessagesCollector
protected function getLevelName($level) protected function getLevelName($level)
{ {
$map = array( $map = array(
Log::FATAL => LogLevel::EMERGENCY, Log::EMERGENCY => LogLevel::EMERGENCY,
Log::ALERT => LogLevel::ALERT,
Log::CRITICAL => LogLevel::CRITICAL,
Log::ERROR => LogLevel::ERROR, Log::ERROR => LogLevel::ERROR,
Log::WARN => LogLevel::WARNING, Log::WARN => LogLevel::WARNING,
Log::INFO => LogLevel::INFO Log::NOTICE => LogLevel::NOTICE,
Log::INFO => LogLevel::INFO,
Log::DEBUG => LogLevel::DEBUG
); );
return $map[$level]; return $map[$level];
} }