Skip to content

Commit 814f756

Browse files
authored
Add PHP error log to external docker logs (#4274)
* Write PHP error log to docker/logs/php/error.log * Changelog
1 parent 5f9d58b commit 814f756

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* Fix - Address an edge case with webhook URL comparisons
2222
* Fix - Show correct gateway name in non payments settings pages.
2323
* Dev - Minor fix to e2e setup code
24+
* Dev - Make PHP error log from Docker container available in docker/logs/php/error.log
2425

2526
= 9.4.1 - 2025-04-17 =
2627
* Dev - Forces rollback of version 9.4.0.

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ services:
1414
volumes:
1515
- ./docker/wordpress:/var/www/html/
1616
- ./docker/logs/apache2/:/var/log/apache2
17+
- ./docker/logs/php/:/var/log/php
1718
- .:/var/www/html/wp-content/plugins/woocommerce-gateway-stripe
1819
- ./tests/phpunit:/var/www/html/wp-content/plugins/woocommerce-gateway-stripe/tests/phpunit
1920
- ./docker/dev-php.ini:/usr/local/etc/php/conf.d/dev-php.ini
21+
- ./docker/override-php-error-logging.ini:/usr/local/etc/php/conf.d/override-php-error-logging.ini
2022
- ./docker/bin:/var/scripts
2123
extra_hosts:
2224
- "host.docker.internal:host-gateway"

docker/override-php-error-logging.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
error_log = /var/log/php/error.log

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,6 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
131131
* Fix - Address an edge case with webhook URL comparisons
132132
* Fix - Show correct gateway name in non payments settings pages.
133133
* Dev - Minor fix to e2e setup code
134+
* Dev - Make PHP error log from Docker container available in docker/logs/php/error.log
134135

135136
[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).

0 commit comments

Comments
 (0)