From e9ee31e83b24455ce1318fe96db5647f170d42ae Mon Sep 17 00:00:00 2001 From: Binbin Date: Sat, 7 Oct 2023 10:59:00 +0800 Subject: [PATCH] Fix misleading error message in redis.log when loglevel is invalid We don't have any debug level, change it to log level. --- src/script_lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script_lua.c b/src/script_lua.c index 8cdd80523cc..e96d8eeeb0d 100644 --- a/src/script_lua.c +++ b/src/script_lua.c @@ -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;