com php-src: move zlog_set_level() again: sapi/fp m/fpm/fpm_conf.c sapi/fpm/fpm/fpm_unix.c

From: Date: Fri, 21 Nov 2014 06:49:08 +0000
Subject: com php-src: move zlog_set_level() again: sapi/fp m/fpm/fpm_conf.c sapi/fpm/fpm/fpm_unix.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-83212@lists.php.net to get a copy of this message
Commit: 9e8d4a1b064e1d9da0b52fe808890299f74e52bb Author: David Zuelke <dzuelke@gmail.com> Wed, 19 Nov 2014 23:39:00 +0100 Committer: Remi Collet <remi@php.net> Fri, 21 Nov 2014 07:49:08 +0100 Parents: 8beb1534601db46ead7b6c399de6a9131c744994 Branches: PHP-5.5 PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9e8d4a1b064e1d9da0b52fe808890299f74e52bb Log: move zlog_set_level() again 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 Bugs: https://bugs.php.net/894 Changed paths: M sapi/fpm/fpm/fpm_conf.c M sapi/fpm/fpm/fpm_unix.c Diff: diff --git a/sapi/fpm/fpm/fpm_conf.c b/sapi/fpm/fpm/fpm_conf.c index 6e25535..908c788 100644 --- a/sapi/fpm/fpm/fpm_conf.c +++ b/sapi/fpm/fpm/fpm_conf..c @@ -1153,6 +1153,7 @@ static int fpm_conf_post_process(int force_daemon TSRMLS_DC) /* {{{ */ } fpm_globals.log_level = fpm_global_config.log_level; + zlog_set_level(fpm_globals.log_level); if (fpm_global_config.process_max < 0) { zlog(ZLOG_ERROR, "process_max can't be negative"); diff --git a/sapi/fpm/fpm/fpm_unix.c b/sapi/fpm/fpm/fpm_unix.c index 5dfdb4a..7ce2bcc 100644 --- a/sapi/fpm/fpm/fpm_unix.c +++ b/sapi/fpm/fpm/fpm_unix.c @@ -231,8 +231,6 @@ int fpm_unix_init_main() /* {{{ */ struct fpm_worker_pool_s *wp; int is_root = !geteuid(); - zlog_set_level(fpm_globals.log_level); - if (fpm_global_config.rlimit_files) { struct rlimit r;

« previous php.cvs (#83212) next »