summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sapi/fpm/fpm/zlog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/fpm/fpm/zlog.c b/sapi/fpm/fpm/zlog.c
index 5aed22a640..fc3c0168e1 100644
--- a/sapi/fpm/fpm/zlog.c
+++ b/sapi/fpm/fpm/zlog.c
@@ -51,6 +51,8 @@ int zlog_set_level(int new_value) /* {{{ */
{
int old_value = zlog_level;
+ if (new_value < ZLOG_DEBUG || new_value > ZLOG_ALERT) return old_value;
+
zlog_level = new_value;
return old_value;
}