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

Remove duplicate call to BufferHandler::close, fixes #386

This commit is contained in:
Jordi Boggiano
2014-07-28 22:08:10 +02:00
parent ac3f343f2d
commit 16afa5ac26
2 changed files with 20 additions and 4 deletions

View File

@@ -91,6 +91,13 @@ class BufferHandler extends AbstractHandler
$this->clear();
}
public function __destruct()
{
// suppress the parent behavior since we already have register_shutdown_function()
// to call close(), and the reference contained there will prevent this from being
// GC'd until the end of the request
}
/**
* {@inheritdoc}
*/