summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-04-07 14:10:43 +0200
committerantirez <antirez@gmail.com>2020-04-07 14:10:43 +0200
commita6350f717d0231959492134c0ea411bd94a64bae (patch)
tree10ecb51a9c4da2706ba1764aa6e8ad69ff075edd
parentf69876280c630d49574fa094808d3a4791c5039b (diff)
parente93dcba46e7b2229f3f507e01289ff98164d24b4 (diff)
downloadredis-a6350f717d0231959492134c0ea411bd94a64bae.tar.gz
Merge branch 'unstable' of github.com:/antirez/redis into unstable
-rw-r--r--src/scripting.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/scripting.c b/src/scripting.c
index 32a511e13..bccbcf637 100644
--- a/src/scripting.c
+++ b/src/scripting.c
@@ -959,6 +959,7 @@ int luaLogCommand(lua_State *lua) {
lua_pushstring(lua, "Invalid debug level.");
return lua_error(lua);
}
+ if (level < server.verbosity) return 0;
/* Glue together all the arguments */
log = sdsempty();