1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-08 06:06:40 +02:00

Catch Throwable

This commit is contained in:
Filip Procházka
2016-05-12 16:22:36 +02:00
parent 85dcece943
commit 06efba7062
2 changed files with 3 additions and 3 deletions

View File

@@ -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
} }
} }

View File

@@ -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?
} }
} }
@@ -49,7 +49,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?
} }
} }