summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2009-12-14 09:51:14 +0000
committerAntony Dovgal <tony2001@php.net>2009-12-14 09:51:14 +0000
commit2cce8d78b8d72d8f31bb6f91435c16db05faeaa9 (patch)
tree1e0a857c1a1b9cd2c19d92c219a1c92e4df1ab4a
parent91717ac81e46975186f8ac63d33627e98f9f4f2c (diff)
downloadphp-git-2cce8d78b8d72d8f31bb6f91435c16db05faeaa9.tar.gz
set log_level always (patch by Jerome Loyet)
-rw-r--r--sapi/fpm/fpm/fpm_stdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/fpm/fpm/fpm_stdio.c b/sapi/fpm/fpm/fpm_stdio.c
index 63eba03bd9..f9d665f424 100644
--- a/sapi/fpm/fpm/fpm_stdio.c
+++ b/sapi/fpm/fpm/fpm_stdio.c
@@ -41,6 +41,7 @@ int fpm_stdio_init_main() /* {{{ */
int fpm_stdio_init_final() /* {{{ */
{
+ zlog_set_level(fpm_globals.log_level);
if (fpm_global_config.daemonize) {
if (fpm_globals.error_log_fd != STDERR_FILENO) {
/* there might be messages to stderr from libevent, we need to log them all */
@@ -49,7 +50,6 @@ int fpm_stdio_init_final() /* {{{ */
return -1;
}
}
- zlog_set_level(fpm_globals.log_level);
zlog_set_fd(fpm_globals.error_log_fd);
}
return 0;