Php5-fpm stack trace disable end of line
When a particularly long line is printed to php5-fpm.log, the line is truncated at the end and "..." is displayed (without quotes) to indicate that it is disabled. How can I make it so that it displays the entire string regardless of length?
I am using Nginx with MySQL, PHP and Laravel if that matters. Basically when I print something in the error log like this:
error_log(print_r($long_str, TRUE));
If $ long_str is long enough, it is disabled. I use this for debugging purposes and it worked great when I was working in Apache, so I think it might have something to do with Nginx.
I've tried changing ...
log_errors_max_len = 1024
to
log_errors_max_len = 60000
in the file / etc / php 5 / cli / php.ini and / etc / php5 / fpm / php.ini
But he doesn't do anything. How do I get the full line to print?
source to share
https://github.com/php/php-src/pull/1076
This is a hard limit in php-fpm, the above pull request is trying to remove the limit. The limit was added due to syslog to follow the original RFC. However, the newer RFC has removed this limit and most people are asking to customize the message format and format in php-fpm
source to share