mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Reduce excessive logging
This commit is contained in:
@@ -523,7 +523,7 @@ void CObjectClassesHandler::afterLoadFinalization()
|
|||||||
|
|
||||||
obj->afterLoadFinalization();
|
obj->afterLoadFinalization();
|
||||||
if(obj->getTemplates().empty())
|
if(obj->getTemplates().empty())
|
||||||
logGlobal->warn("No templates found for %s:%s", entry->getJsonKey(), obj->getJsonKey());
|
logMod->debug("No templates found for %s:%s", entry->getJsonKey(), obj->getJsonKey());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ void ObstacleSet::removeEmptyTemplates()
|
|||||||
{
|
{
|
||||||
if (tmpl->getBlockedOffsets().empty())
|
if (tmpl->getBlockedOffsets().empty())
|
||||||
{
|
{
|
||||||
logMod->warn("Obstacle template %s blocks no tiles, removing it", tmpl->stringID);
|
logMod->debug("Obstacle template %s blocks no tiles, removing it", tmpl->stringID);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@@ -457,7 +457,7 @@ void ObstacleSetHandler::addTemplate(const std::string & scope, const std::strin
|
|||||||
|
|
||||||
if (VLC->identifiersHandler->getIdentifier(scope, "obstacleTemplate", strippedName, true))
|
if (VLC->identifiersHandler->getIdentifier(scope, "obstacleTemplate", strippedName, true))
|
||||||
{
|
{
|
||||||
logMod->warn("Duplicate obstacle template: %s", strippedName);
|
logMod->debug("Duplicate obstacle template: %s", strippedName);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user