Skip to content

Conversation

@dzuelke
Copy link
Contributor

@dzuelke dzuelke commented Nov 8, 2014

The log level will be ignored throughout log events in fpm_unix_init_main, until
the very end when zlog_set_level is finally called.

In particular, fpm_unix_conf_wp may throw notices like this:

[08-Nov-2014 17:13:36] NOTICE: [pool www] 'user' directive is ignored when…

Which will still appear even if log_level in php-fpm.conf is set to warning+

To reproduce, set "log_level" in php-fpm.conf to warning. On startup as non-root, these two notices will still appear:

[08-Nov-2014 17:13:36] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root
[08-Nov-2014 17:13:36] NOTICE: [pool www] 'user' directive is ignored when FPM is not running as root

Adresses https://bugs.php.net/bug.php?id=68381

The log level will be ignored throughout log events in fpm_unix_init_main, until
the very end when zlog_set_level is finally called.

In particular, fpm_unix_conf_wp may throw notices like this:

> [08-Nov-2014 17:13:36] NOTICE: [pool www] 'user' directive is ignored when…

Which will still appear even if log_level in php-fpm.conf is set to warning+
@remicollet
Copy link
Member

@dzuelke can you please close this PR (as it is merged, and don't have enough right here)

@php-pulls
Copy link

Comment on behalf of remi at php.net:

merged

@php-pulls php-pulls closed this Nov 18, 2014
dzuelke added a commit to dzuelke/php-src that referenced this pull request Nov 19, 2014
from fpm_unix_init_main() to fpm_conf_post_process() this time (see php#894),
because otherwise nothing in fpm_conf_init_main() obeys log levels
php-pulls pushed a commit that referenced this pull request Nov 20, 2014
from fpm_unix_init_main() to fpm_conf_post_process() this time (see #894),
because otherwise nothing in fpm_conf_init_main() obeys log levels
php-pulls pushed a commit that referenced this pull request Nov 20, 2014
from fpm_unix_init_main() to fpm_conf_post_process() this time (see #894),
because otherwise nothing in fpm_conf_init_main() obeys log levels
php-pulls pushed a commit that referenced this pull request Nov 21, 2014
from fpm_unix_init_main() to fpm_conf_post_process() this time (see #894),
because otherwise nothing in fpm_conf_init_main() obeys log levels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants