mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 05:07:36 +02:00
Merge remote-tracking branch 'fprochazka/php7-throwable'
This commit is contained in:
@@ -39,7 +39,7 @@ abstract class Handler implements HandlerInterface
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$this->close();
|
$this->close();
|
||||||
} catch (\Exception $e) {
|
} catch (\Throwable $e) {
|
||||||
// do nothing
|
// do nothing
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -33,7 +33,7 @@ class WhatFailureGroupHandler extends GroupHandler
|
|||||||
foreach ($this->handlers as $handler) {
|
foreach ($this->handlers as $handler) {
|
||||||
try {
|
try {
|
||||||
$handler->handle($record);
|
$handler->handle($record);
|
||||||
} catch (\Exception $e) {
|
} catch (\Throwable $e) {
|
||||||
// What failure?
|
// What failure?
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
// What failure?
|
// What failure?
|
||||||
@@ -51,7 +51,7 @@ class WhatFailureGroupHandler extends GroupHandler
|
|||||||
foreach ($this->handlers as $handler) {
|
foreach ($this->handlers as $handler) {
|
||||||
try {
|
try {
|
||||||
$handler->handleBatch($records);
|
$handler->handleBatch($records);
|
||||||
} catch (\Exception $e) {
|
} catch (\Throwable $e) {
|
||||||
// What failure?
|
// What failure?
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
// What failure?
|
// What failure?
|
||||||
|
Reference in New Issue
Block a user