Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

merged 2.0

  • Loading branch information...
commit 0567d62f1b83a9cb1275dce13473d5710b4a81dd 2 parents 193de31 + 549dfa9
@fabpot fabpot authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 Handler/DebugHandler.php
View
6 Handler/DebugHandler.php
@@ -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]);
}
Please sign in to comment.
Something went wrong with that request. Please try again.