1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-24 06:52:34 +01:00

little update related to issue #91 to make sure that the buffer won't get sent to the sub-handler twice

This commit is contained in:
Shreef 2012-06-14 15:21:41 +02:00
parent 85317d4f8f
commit 96a2319a24

View File

@ -65,6 +65,9 @@ class BufferHandler extends AbstractHandler
*/
public function close()
{
$this->handler->handleBatch($this->buffer);
if($this->buffer) {
$this->handler->handleBatch($this->buffer);
$this->buffer = array();
}
}
}