-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Remove usage of non-existing MAX_LINE_LENGTH constant #5634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This constant was deleted in php@3e5afbf#diff-f8c1cfc7c2ca0db20a3a595ab6de0e43L20
The change itself is of course right, but cc @bukka on the motivating problem. Should log_limit apply to the access log as well? |
If not, it would be nice if it would be configurable in some way. Didn't contribute to the PHP src yet. Would that need an RFC? |
The change is correct but unfortunately it doesn't resolve the issue. It stays 1024... It would be nice to use |
Hi everyone! Has there any progress been made on this? This issue is also affecting logging for my application (also containerized, centralized logging, formatted to JSON, etc.), and no amount of logging configuration I put into my php-fpm config files make it go away. Thanks in advance! |
Hit this issue recently myself. Was not aware that log limit setting does not work with access log. Would be great if it would. |
style: remove FPM_LOG_BUFFER indentation
@orlandothoeny there's #12302 |
I've been trying to solve PHP-FPM access logs from being truncated after 1023 characters. Getting the message
NOTICE: the log buffer is full (1024). The access log request has been truncated.
It works fine for error_logs by setting thelog_limit
configuration directive. Also triedlog_errors_max_len
. But access logs always get truncated after 1023 chars.I have found this
MAX_LINE_LENGTH
constant in the file where the log message is generated. Thought it be set by some configuration. But I couldn't find any file where this constant is set. Not in the code, also not after compiling the source.Seems like it was in the https://github.com/php/php-src/blob/master/sapi/fpm/fpm/zlog.c file before, and deleted in this commit: 3e5afbf#diff-f8c1cfc7c2ca0db20a3a595ab6de0e43L20
zlog.c
gets included byfpm_log.c
, might have been forgotten to also delete the constant infpm_log.c
?This constant was apparently deleted in 3e5afbf#diff-f8c1cfc7c2ca0db20a3a595ab6de0e43L20
Issue for commit: #2458
Possible I've missed something out, and it exists after all. Maybe someone who actually has a clue can have a look :)
For my original issue: Ended up building PHP from source and patching it, increasing the hardcoded value of
MAX_LINE_LENGTH
.