Judge the log level in advance
This commit is contained in:
parent
af5c11874c
commit
25063f75d7
@ -959,6 +959,7 @@ int luaLogCommand(lua_State *lua) {
|
|||||||
lua_pushstring(lua, "Invalid debug level.");
|
lua_pushstring(lua, "Invalid debug level.");
|
||||||
return lua_error(lua);
|
return lua_error(lua);
|
||||||
}
|
}
|
||||||
|
if (level < server.verbosity) return 0;
|
||||||
|
|
||||||
/* Glue together all the arguments */
|
/* Glue together all the arguments */
|
||||||
log = sdsempty();
|
log = sdsempty();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user