mirror of
https://github.com/php/php-src.git
synced 2026-03-31 04:32:19 +02:00
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
This commit is contained in:
committed by
Remi Collet
parent
909d44f20d
commit
befce20c84
@@ -1159,6 +1159,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");
|
||||
|
||||
@@ -266,8 +266,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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user