mirror of
https://github.com/Seldaek/monolog.git
synced 2025-02-23 22:42:38 +01:00
fixed issue #91
This commit is contained in:
parent
2eb0c0978d
commit
85317d4f8f
@ -38,6 +38,9 @@ class BufferHandler extends AbstractHandler
|
||||
parent::__construct($level, $bubble);
|
||||
$this->handler = $handler;
|
||||
$this->bufferSize = $bufferSize;
|
||||
|
||||
// __destructor() doesn't get called on Fatal errors
|
||||
register_shutdown_function(array($this, 'close'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -64,4 +67,4 @@ class BufferHandler extends AbstractHandler
|
||||
{
|
||||
$this->handler->handleBatch($this->buffer);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user