1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-07 21:56:31 +02:00

Change check of record level to >= Logger::ERROR instead of >

Logger::ERROR, as suggested by @Seldaek in
https://github.com/Seldaek/monolog/pull/76#r737303
This commit is contained in:
Marc Abramowitz
2012-04-26 14:07:43 -07:00
parent 3238a7417b
commit 1c5969629f

View File

@@ -54,7 +54,7 @@ class RavenHandler extends AbstractProcessingHandler
*/ */
protected function write(array $record) protected function write(array $record)
{ {
if ($record['level'] == Logger::ERROR && isset($record['context']['exception'])) { if ($record['level'] >= Logger::ERROR && isset($record['context']['exception'])) {
$this->ravenClient->captureException($record['context']['exception']); $this->ravenClient->captureException($record['context']['exception']);
} else { } else {
$this->ravenClient->captureMessage( $this->ravenClient->captureMessage(