mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-24 01:56:18 +02:00
Add try/catch block around call to close method in the AbstractHandler destructor.
This commit is contained in:
@@ -154,7 +154,11 @@ abstract class AbstractHandler implements HandlerInterface
|
|||||||
|
|
||||||
public function __destruct()
|
public function __destruct()
|
||||||
{
|
{
|
||||||
$this->close();
|
try {
|
||||||
|
$this->close();
|
||||||
|
} catch( \Exception $e ) {
|
||||||
|
// do nothing
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user