mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 13:46:38 +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:
@@ -54,7 +54,7 @@ class RavenHandler extends AbstractProcessingHandler
|
||||
*/
|
||||
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(
|
||||
|
Reference in New Issue
Block a user