diff options
author | sfan5 <sfan5@live.de> | 2020-04-08 20:13:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-08 20:13:23 +0200 |
commit | de73f989eb1397b1103236031fd91309b294583c (patch) | |
tree | b2fae6ebca2468b17f7d9648eb63625b6b3712c1 /src/script | |
parent | 3494475df108e3401c6c8463a0aeae0f227fd1fa (diff) | |
download | minetest-de73f989eb1397b1103236031fd91309b294583c.tar.gz minetest-de73f989eb1397b1103236031fd91309b294583c.tar.bz2 minetest-de73f989eb1397b1103236031fd91309b294583c.zip |
Overall improvements to log messages (#9598)
Hide some unnecessarily verbose ones behind --trace or disable them entirely.
Remove duplicate ones. Improve their contents in some places.
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/cpp_api/s_env.cpp | 2 | ||||
-rw-r--r-- | src/script/lua_api/l_item.cpp | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/script/cpp_api/s_env.cpp b/src/script/cpp_api/s_env.cpp index ab3b5fe46..8da5debaa 100644 --- a/src/script/cpp_api/s_env.cpp +++ b/src/script/cpp_api/s_env.cpp @@ -86,7 +86,7 @@ void ScriptApiEnv::player_event(ServerActiveObject *player, const std::string &t void ScriptApiEnv::initializeEnvironment(ServerEnvironment *env) { SCRIPTAPI_PRECHECKHEADER - verbosestream << "scriptapi_add_environment" << std::endl; + verbosestream << "ScriptApiEnv: Environment initialized" << std::endl; setEnv(env); /* diff --git a/src/script/lua_api/l_item.cpp b/src/script/lua_api/l_item.cpp index 0c174feca..ff77cba32 100644 --- a/src/script/lua_api/l_item.cpp +++ b/src/script/lua_api/l_item.cpp @@ -522,7 +522,6 @@ int ModApiItemMod::l_register_item_raw(lua_State *L) lua_getfield(L, table, "name"); if(lua_isstring(L, -1)){ name = readParam<std::string>(L, -1); - verbosestream<<"register_item_raw: "<<name<<std::endl; } else { throw LuaError("register_item_raw: name is not defined or not a string"); } |