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:
parent
85317d4f8f
commit
96a2319a24
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user