Unverified Commit 5e403099 authored by Binbin's avatar Binbin Committed by GitHub
Browse files

Fix misleading error message in redis.log when loglevel is invalid (#12636)

We don't have any debug level, change it to log level.
parent c9aa586b
...@@ -1169,7 +1169,7 @@ static int luaLogCommand(lua_State *lua) { ...@@ -1169,7 +1169,7 @@ static int luaLogCommand(lua_State *lua) {
} }
level = lua_tonumber(lua,-argc); level = lua_tonumber(lua,-argc);
if (level < LL_DEBUG || level > LL_WARNING) { if (level < LL_DEBUG || level > LL_WARNING) {
luaPushError(lua, "Invalid debug level."); luaPushError(lua, "Invalid log level.");
return luaError(lua); return luaError(lua);
} }
if (level < server.verbosity) return 0; if (level < server.verbosity) return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment