Skip to content

Commit d4cac02

Browse files
committed
Log 500 in docker
1 parent 7e9ffcd commit d4cac02

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

service/composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"symfony/twig-bundle": "7.2.*",
2323
"symfony/yaml": "7.2.*",
2424
"predis/predis": "^2.0",
25-
"symfony/cache": "7.2.*"
25+
"symfony/cache": "7.2.*",
26+
"symfony/monolog-bundle": "^3.9"
2627
},
2728
"config": {
2829
"allow-plugins": {

service/config/bundles.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
99
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
1010
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
11+
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
1112
];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
monolog:
2+
handlers:
3+
main:
4+
type: stream
5+
path: "php://stderr"
6+
level: error
7+
channels: ["!event", "!doctrine"]

service/docker/php-fpm.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[global]
22
pid = /var/run/php-fpm.pid
3-
error_log = /var/log/php-fpm.log
3+
error_log = /proc/self/fd/2
44
log_level = warning
55
daemonize = no
66

0 commit comments

Comments
 (0)