mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-08 06:06:40 +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)
|
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(
|
||||||
|
Reference in New Issue
Block a user