mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-12 16:14:08 +02:00
Optimize ChromePHP/FirePHP to skip header generation when they are disabled, refs #360
This commit is contained in:
@@ -22,6 +22,7 @@ class ChromePHPHandlerTest extends TestCase
|
||||
protected function setUp()
|
||||
{
|
||||
TestChromePHPHandler::reset();
|
||||
$_SERVER['HTTP_USER_AGENT'] = 'Monolog Test; Chrome/1.0';
|
||||
}
|
||||
|
||||
public function testHeaders()
|
||||
@@ -124,6 +125,7 @@ class TestChromePHPHandler extends ChromePHPHandler
|
||||
{
|
||||
self::$initialized = false;
|
||||
self::$overflowed = false;
|
||||
self::$sendHeaders = true;
|
||||
self::$json['rows'] = array();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user