mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 21:56:31 +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()
|
public function close()
|
||||||
{
|
{
|
||||||
|
if($this->buffer) {
|
||||||
$this->handler->handleBatch($this->buffer);
|
$this->handler->handleBatch($this->buffer);
|
||||||
|
$this->buffer = array();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user