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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user