mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Improve readability and infos in verbose log (#13828)
This commit is contained in:
parent
5949172735
commit
c3114132d3
11 changed files with 26 additions and 51 deletions
|
@ -71,8 +71,12 @@ LuaEntitySAO::LuaEntitySAO(ServerEnvironment *env, v3f pos, const std::string &d
|
|||
break;
|
||||
}
|
||||
// create object
|
||||
infostream << "LuaEntitySAO::create(name=\"" << name << "\" state=\""
|
||||
<< state << "\")" << std::endl;
|
||||
infostream << "LuaEntitySAO::create(name=\"" << name << "\" state is";
|
||||
if (state.empty())
|
||||
infostream << "empty";
|
||||
else
|
||||
infostream << state.size() << " bytes";
|
||||
infostream << ")" << std::endl;
|
||||
|
||||
m_init_name = name;
|
||||
m_init_state = state;
|
||||
|
@ -281,7 +285,6 @@ std::string LuaEntitySAO::getClientInitializationData(u16 protocol_version)
|
|||
|
||||
void LuaEntitySAO::getStaticData(std::string *result) const
|
||||
{
|
||||
verbosestream<<FUNCTION_NAME<<std::endl;
|
||||
std::ostringstream os(std::ios::binary);
|
||||
// version must be 1 to keep backwards-compatibility. See version2
|
||||
writeU8(os, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue