Fix misleading error message in redis.log when loglevel is invalid (#12636)
We don't have any debug level, change it to log level.
This commit is contained in:
parent
c9aa586b6b
commit
5e403099bd
@ -1169,7 +1169,7 @@ static int luaLogCommand(lua_State *lua) {
|
||||
}
|
||||
level = lua_tonumber(lua,-argc);
|
||||
if (level < LL_DEBUG || level > LL_WARNING) {
|
||||
luaPushError(lua, "Invalid debug level.");
|
||||
luaPushError(lua, "Invalid log level.");
|
||||
return luaError(lua);
|
||||
}
|
||||
if (level < server.verbosity) return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user