Permalink
Browse files

merged 2.0

  • Loading branch information...
2 parents 193de31 + 549dfa9 commit 0567d62f1b83a9cb1275dce13473d5710b4a81dd @fabpot fabpot committed Aug 26, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 Handler/DebugHandler.php
View
@@ -47,7 +47,11 @@ public function getLogs()
public function countErrors()
{
$cnt = 0;
- foreach (array(Logger::ERROR, Logger::CRITICAL, Logger::ALERT) as $level) {
+ $levels = array(Logger::ERROR, Logger::CRITICAL, Logger::ALERT);
+ if (defined('Monolog\Logger::EMERGENCY')) {
+ $levels[] = Logger::EMERGENCY;
+ }
+ foreach ($levels as $level) {
if (isset($this->recordsByLevel[$level])) {
$cnt += count($this->recordsByLevel[$level]);
}

0 comments on commit 0567d62

Please sign in to comment.