Skip to content

Commit 8e415b3

Browse files
committed
fix: log_level definition location
1 parent 18a9efc commit 8e415b3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ jobs:
2626
run: docker build -t nginx-php:${{ matrix.php_version }} --build-arg PHP_VERSION=${{ matrix.php_version }} .
2727
- name: Run Docker image
2828
run: docker run -d --name nginx-php -t nginx-php:${{ matrix.php_version }}
29-
- name: Test image is running
30-
run: docker ps | grep -q nginx-php
3129
- name: Test nginx config inside container
3230
run: |
33-
sleep 10
31+
sleep 2
3432
docker exec -t nginx-php nginx -T
3533
docker exec -t nginx-php php-fpm --test

config/php-fpm.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[global]
22
daemonize = no
3+
log_level = warning
34

45
[www]
56
; Have Nginx and PHP-FPM connect over a socket instead of HTTP
@@ -15,6 +16,5 @@ pm.max_spare_servers = 8
1516
pm.max_children = 16
1617
pm.max_requests = 1000
1718

18-
; Don't log PHP-FPM request logs, warn on internal errors
19+
; Don't log PHP-FPM request logs
1920
access.log = /dev/null
20-
log_level = warning

0 commit comments

Comments
 (0)