FastCGI stderr gets split into two lines
|Reported by:||Owned by:|
|uname -a:||FreeBSD www-07-portlane.mytaste.name 10.3-RELEASE FreeBSD 10.3-RELEASE #0 r297264: Fri Mar 25 02:10:02 UTC 2016 email@example.com:/usr/obj/usr/src/sys/GENERIC amd64|
|nginx -V:||nginx version: nginx/1.10.1|
Sometimes we have quite big stack-traces being sent from php-fpm through stderr, our problem is that nginx splits the error message into two separate log lines (see attached example).
It seems nginx splits the error into multiple lines when the log line reaches over 4096 chars but I can't seem to find where that is happening in the code.
I have changed NGX_MAX_ERROR_STR in src/core/ngx_log.h line 76 to 16384 (just for the sake of it) but that doesn't help, it still gets split into multiple lines.