Skip to content

Commit

Permalink
Change check of record level to >= Logger::ERROR instead of >
Browse files Browse the repository at this point in the history
Logger::ERROR, as suggested by @Seldaek in
#76 (comment)
  • Loading branch information
msabramo committed Apr 26, 2012
1 parent 3238a74 commit 1c59696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Monolog/Handler/RavenHandler.php
Expand Up @@ -54,7 +54,7 @@ public function close()
*/
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']);
} else {
$this->ravenClient->captureMessage(
Expand Down

0 comments on commit 1c59696

Please sign in to comment.