Skip to content

Commit 6134436

Browse files
committed
support both 'warn' and 'warning' as error levels
1 parent cdaa87f commit 6134436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/fpm/fpm/fpm_conf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ static char *fpm_conf_set_log_level(zval *value, void **config, intptr_t offset)
196196
fpm_globals.log_level = ZLOG_DEBUG;
197197
} else if (!strcasecmp(val, "notice")) {
198198
fpm_globals.log_level = ZLOG_NOTICE;
199-
} else if (!strcasecmp(val, "warn")) {
199+
} else if (!strcasecmp(val, "warning") || !strcasecmp(val, "warn")) {
200200
fpm_globals.log_level = ZLOG_WARNING;
201201
} else if (!strcasecmp(val, "error")) {
202202
fpm_globals.log_level = ZLOG_ERROR;

0 commit comments

Comments
 (0)