mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-06 05:07:36 +02: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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user