mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 05:18:32 +01:00
Updated SlimCollector severity levels
Updated $map array on line 49 according to Slim's current PSR-3 severity levels.
This commit is contained in:
parent
522633f3cf
commit
519efd8ea3
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user