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