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

Add try/catch block around call to close method in the AbstractHandler destructor.

This commit is contained in:
Mark Perkins
2012-02-11 11:07:55 +00:00
parent 355123d607
commit 5055102e88

View File

@@ -154,7 +154,11 @@ abstract class AbstractHandler implements HandlerInterface
public function __destruct()
{
$this->close();
try {
$this->close();
} catch( \Exception $e ) {
// do nothing
}
}
/**