Skip to content

Commit 0a94017

Browse files
committed
limit body length
1 parent f0e64ed commit 0a94017

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

.github/workflows/pint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup PHP
1313
uses: shivammathur/setup-php@v2
1414
with:
15-
php-version: '8.4'
15+
php-version: '8.3'
1616
extensions: pcntl, curl, pdo_mysql, zip, curl, redis
1717
coverage: none
1818

.github/workflows/stan.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup PHP
1313
uses: shivammathur/setup-php@v2
1414
with:
15-
php-version: '8.4'
15+
php-version: '8.3'
1616
coverage: none
1717

1818
- name: Install composer dependencies

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup PHP
1313
uses: shivammathur/setup-php@v2
1414
with:
15-
php-version: '8.4'
15+
php-version: '8.3'
1616
extensions: pcntl, curl, pdo_mysql, zip, curl, redis
1717
coverage: none
1818

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM dunglas/frankenphp:php8.4
1+
FROM dunglas/frankenphp:php8.3
22
ARG UID
33
ARG GID
44

bootstrap/app.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Illuminate\Foundation\Configuration\Middleware;
88
use Illuminate\Foundation\Http\Middleware\ValidateCsrfToken;
99
use Illuminate\Session\Middleware\StartSession;
10+
use Illuminate\Support\Str;
1011
use Illuminate\Support\Facades\Log;
1112
use Illuminate\View\Middleware\ShareErrorsFromSession;
1213

@@ -33,7 +34,7 @@
3334
Log::warning('HTTP Request Exception', [
3435
'url' => (string) $e->getRequest()->getUri(),
3536
'status' => $e->getResponse()->getStatusCode(),
36-
'body' => $e->getResponse()->getBody(),
37+
'body' => Str::of((string) $e->getResponse()->getBody())->substr(0, 250)
3738
]);
3839
})->stop();
3940
})->create();

0 commit comments

Comments
 (0)