Skip to content

Commit

Permalink
Fix misleading error message in redis.log when loglevel is invalid
Browse files Browse the repository at this point in the history
We don't have any debug level, change it to log level.
  • Loading branch information
enjoy-binbin committed Oct 7, 2023
1 parent fe37e4f commit e9ee31e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script_lua.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e9ee31e

Please sign in to comment.