diff --git a/app/Logger/LoggedRequest.php b/app/Logger/LoggedRequest.php index 8c389a1..0932c62 100644 --- a/app/Logger/LoggedRequest.php +++ b/app/Logger/LoggedRequest.php @@ -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) {