catch_workers_output php fastcgi compatibility does not exist
- 主要语言
- C++
- 星标
- 18.7k
- 派生
- 3.1k
- 平均合并
- 1 小时 47 分钟
- 30 天内合并 PR
- 2
描述
In HHVM 3.2 there is still no support for `catch_workers_output` that php-fpm allows.
``` bash
catch_workers_output = yes
; Redirect worker stdout and stderr into main error log.
; If not set, stdout and stderr will be redirected to /dev/null according to FastCGI specs.
```
This means there is no way to automatically capture the remote ip address in the error logs since there is no way to control the format of HHVM error logs. (With `catch_workers_output` STDERR would be sent to nginx or apache and those logs would show the ip that was sent to fastcgi that caused the error.)
If this is difficult to implement, alternatively please give us a way to control errorlog format.
Even if `%a` cannot work in a fastcgi environment, in theory `%{REMOTE_ADDR}e` should (if HHVM supports).
I tried to use `%a` and `%{REMOTE_ADDR}e` in the `--extra-headers` command line option for logs but unfortunately `extra-headers` seems to be printed literally without trying to interpret format variables.
贡献指南
评估
这个 Issue 还没有评估数据。