mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-07 05:36:45 +02:00
fixed issue #91
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user