Skip to content

Commit

Permalink
Map CRITICAL and ALERT to ERROR because raven doesn't have more than
Browse files Browse the repository at this point in the history
ERROR, because otherwise those messages will fail. As suggested by
@Seldaek in https://github.com/Seldaek/monolog/pull/76/files#r737292
  • Loading branch information
msabramo committed Apr 26, 2012
1 parent ac161a0 commit 0e579f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Monolog/Formatter/RavenFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class RavenFormatter extends NormalizerFormatter
Logger::INFO => Raven_Client::INFO,
Logger::WARNING => Raven_Client::WARNING,
Logger::ERROR => Raven_Client::ERROR,
Logger::CRITICAL => Raven_Client::ERROR,
Logger::ALERT => Raven_Client::ERROR,
);

/**
Expand Down

0 comments on commit 0e579f1

Please sign in to comment.