mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
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.
This commit is contained in:
parent
3494475df1
commit
de73f989eb
22 changed files with 87 additions and 111 deletions
|
@ -711,13 +711,11 @@ float LuaEntitySAO::getMinimumSavedMovement()
|
|||
|
||||
std::string LuaEntitySAO::getDescription()
|
||||
{
|
||||
std::ostringstream os(std::ios::binary);
|
||||
os<<"LuaEntitySAO at (";
|
||||
os<<(m_base_position.X/BS)<<",";
|
||||
os<<(m_base_position.Y/BS)<<",";
|
||||
os<<(m_base_position.Z/BS);
|
||||
os<<")";
|
||||
return os.str();
|
||||
std::ostringstream oss;
|
||||
oss << "LuaEntitySAO \"" << m_init_name << "\" ";
|
||||
auto pos = floatToInt(m_base_position, BS);
|
||||
oss << "at " << PP(pos);
|
||||
return oss.str();
|
||||
}
|
||||
|
||||
void LuaEntitySAO::setHP(s32 hp, const PlayerHPChangeReason &reason)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue