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:
Binbin
2023-11-23 10:23:30 +02:00
committed by GitHub
parent c9aa586b6b
commit 5e403099bd
+1 -1
View File
@@ -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;