1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 09:06:10 +02:00

Merge branch '1.x', clean up close/reset for 2.0, refs #997

This commit is contained in:
Jordi Boggiano
2018-11-04 22:41:52 +01:00
13 changed files with 125 additions and 30 deletions

View File

@@ -105,6 +105,8 @@ class BufferHandler extends AbstractHandler implements ProcessableHandlerInterfa
public function close(): void
{
$this->flush();
$this->handler->close();
}
/**
@@ -118,8 +120,12 @@ class BufferHandler extends AbstractHandler implements ProcessableHandlerInterfa
public function reset()
{
$this->flush();
parent::reset();
$this->resetProcessors();
if ($this->handler instanceof ResettableInterface) {
$this->handler->reset();
}