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 16:23:30 +08:00 committed by GitHub
parent c9aa586b6b
commit 5e403099bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;