Skip to content

Commit 8837cf2

Browse files
authored
Limit http error body length in log (#43)
1 parent f0e64ed commit 8837cf2

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
Log::warning('HTTP Request Exception', [
3434
'url' => (string) $e->getRequest()->getUri(),
3535
'status' => $e->getResponse()->getStatusCode(),
36-
'body' => $e->getResponse()->getBody(),
36+
'body' => substr((string) $e->getResponse()->getBody(), 0, 250)
3737
]);
3838
})->stop();
3939
})->create();

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"keywords": ["laravel", "framework"],
66
"license": "MIT",
77
"require": {
8-
"php": "^8.4",
8+
"php": "^8.3",
99
"guzzlehttp/guzzle": "^7.9.3",
1010
"laravel/framework": "^11.46",
1111
"laravel/horizon": "^5.29",

composer.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)