Skip to content

Commit 2cce8d7

Browse files
committed
set log_level always (patch by Jerome Loyet)
1 parent 91717ac commit 2cce8d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/fpm/fpm/fpm_stdio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ int fpm_stdio_init_main() /* {{{ */
4141

4242
int fpm_stdio_init_final() /* {{{ */
4343
{
44+
zlog_set_level(fpm_globals.log_level);
4445
if (fpm_global_config.daemonize) {
4546
if (fpm_globals.error_log_fd != STDERR_FILENO) {
4647
/* there might be messages to stderr from libevent, we need to log them all */
@@ -49,7 +50,6 @@ int fpm_stdio_init_final() /* {{{ */
4950
return -1;
5051
}
5152
}
52-
zlog_set_level(fpm_globals.log_level);
5353
zlog_set_fd(fpm_globals.error_log_fd);
5454
}
5555
return 0;

0 commit comments

Comments
 (0)