mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-04 04:07:39 +02:00
Merge pull request #54 from allmarkedup/patch-1
Prevent exceptions from being thrown in file handler destructors
This commit is contained in:
@@ -154,7 +154,11 @@ abstract class AbstractHandler implements HandlerInterface
|
|||||||
|
|
||||||
public function __destruct()
|
public function __destruct()
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
$this->close();
|
$this->close();
|
||||||
|
} catch(\Exception $e) {
|
||||||
|
// do nothing
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user