Don't try to log requests as curl when the requests are bigger than 256kb

This commit is contained in:
Marcel Pociot
2020-07-31 10:55:32 +02:00
parent 41e6e674e0
commit eaf04a8eae

View File

@@ -308,6 +308,12 @@ class LoggedRequest implements \JsonSerializable
protected function getRequestAsCurl(): string
{
$maxRequestLength = 256000;
if (strlen($this->rawRequest) > $maxRequestLength) {
return '';
}
try {
return (new CurlFormatter())->format(parse_request($this->rawRequest));
} catch (\Throwable $e) {