mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +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
|
@ -463,7 +463,7 @@ public:
|
|||
}
|
||||
virtual void registerItem(const ItemDefinition &def)
|
||||
{
|
||||
verbosestream<<"ItemDefManager: registering \""<<def.name<<"\""<<std::endl;
|
||||
TRACESTREAM(<< "ItemDefManager: registering " << def.name << std::endl);
|
||||
// Ensure that the "" item (the hand) always has ToolCapabilities
|
||||
if (def.name.empty())
|
||||
FATAL_ERROR_IF(!def.tool_capabilities, "Hand does not have ToolCapabilities");
|
||||
|
@ -490,8 +490,8 @@ public:
|
|||
const std::string &convert_to)
|
||||
{
|
||||
if (m_item_definitions.find(name) == m_item_definitions.end()) {
|
||||
verbosestream<<"ItemDefManager: setting alias "<<name
|
||||
<<" -> "<<convert_to<<std::endl;
|
||||
TRACESTREAM(<< "ItemDefManager: setting alias " << name
|
||||
<< " -> " << convert_to << std::endl);
|
||||
m_aliases[name] = convert_to;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue