Merge pull request #7064 from mymilkbottles/unstable

Optimize lua log level judgment
This commit is contained in:
Salvatore Sanfilippo 2020-04-06 17:34:14 +02:00 committed by GitHub
commit 00c6ab858f

View File

@ -959,6 +959,7 @@ int luaLogCommand(lua_State *lua) {
lua_pushstring(lua, "Invalid debug level.");
return lua_error(lua);
}
if (level < server.verbosity) return 0;
/* Glue together all the arguments */
log = sdsempty();