1
0
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:
Shreef 2012-06-14 14:58:17 +02:00
parent 2eb0c0978d
commit 85317d4f8f

View File

@ -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);
}
}
}