Merge pull request #1 from mymilkbottles/mymilkbottles-log-level-judge

Optimize lua log level judgment
This commit is contained in:
mymilkbottles 2020-04-06 19:34:07 +08:00 committed by GitHub
commit 7bd5ccaad0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();