mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-08 14:16:42 +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()
|
||||
{
|
||||
try {
|
||||
$this->close();
|
||||
} catch( \Exception $e ) {
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user