Skip to content

Commit

Permalink
[AdminBundle] Log console errors as critical instead of error (#2408)
Browse files Browse the repository at this point in the history
* Log console errors as critical instead of error

* update test
  • Loading branch information
Devolicious committed Mar 22, 2019
1 parent 8807a1f commit 49dfe9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Expand Up @@ -56,6 +56,6 @@ private function logCommandError($command, $error)
$error->getLine(),
$command->getName()
);
$this->logger->error($message, ['error' => $error]);
$this->logger->critical($message, ['error' => $error]);
}
}
Expand Up @@ -62,6 +62,6 @@ private function logCommandError($command, $error)
$error->getLine(),
$command->getName()
);
$this->logger->error($message, ['error' => $error]);
$this->logger->critical($message, ['error' => $error]);
}
}
Expand Up @@ -21,7 +21,7 @@ public function testListener()
}

$logger = $this->createMock(LoggerInterface::class);
$logger->expects($this->once())->method('error')->willReturn(true);
$logger->expects($this->once())->method('critical')->willReturn(true);
$subscriber = new ConsoleExceptionSubscriber($logger);

$command = new ApplyAclCommand();
Expand Down

0 comments on commit 49dfe9f

Please sign in to comment.