From c8b0d08cebfaee16569b0e5a9a80911cc238fe1d Mon Sep 17 00:00:00 2001 From: Pierre Lannoy Date: Thu, 5 Sep 2019 13:28:42 +0200 Subject: [PATCH] Change chrome header size limit Due to change in chromium header size support, the size limit enforced by the handler must be decreased. --- src/Monolog/Handler/ChromePHPHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Monolog/Handler/ChromePHPHandler.php b/src/Monolog/Handler/ChromePHPHandler.php index 37419a06..ac98d5de 100644 --- a/src/Monolog/Handler/ChromePHPHandler.php +++ b/src/Monolog/Handler/ChromePHPHandler.php @@ -43,7 +43,7 @@ class ChromePHPHandler extends AbstractProcessingHandler /** * Tracks whether we sent too much data * - * Chrome limits the headers to 256KB, so when we sent 240KB we stop sending + * Chrome limits the headers to 4KB, so when we sent 3KB we stop sending * * @var bool */ @@ -136,7 +136,7 @@ class ChromePHPHandler extends AbstractProcessingHandler $json = @json_encode(self::$json); $data = base64_encode(utf8_encode($json)); - if (strlen($data) > 240 * 1024) { + if (strlen($data) > 3 * 1024) { self::$overflowed = true; $record = array(