|
|
@@ -88,8 +88,7 @@ class BufferHandler extends AbstractHandler
|
|
|
}
|
|
|
|
|
|
$this->handler->handleBatch($this->buffer);
|
|
|
- $this->bufferSize = 0;
|
|
|
- $this->buffer = array();
|
|
|
+ $this->clear();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -99,4 +98,13 @@ class BufferHandler extends AbstractHandler
|
|
|
{
|
|
|
$this->flush();
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * Clears the buffer without flushing any messages down to the wrapped handler.
|
|
|
+ */
|
|
|
+ public function clear()
|
|
|
+ {
|
|
|
+ $this->bufferSize = 0;
|
|
|
+ $this->buffer = array();
|
|
|
+ }
|
|
|
}
|