1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Logging cleanup

This commit is contained in:
AlexVinS
2017-08-10 19:39:27 +03:00
parent 18b8e1c7ad
commit 61e241308d
52 changed files with 188 additions and 188 deletions

View File

@@ -253,7 +253,7 @@ void CMapGenerator::addPlayerInfo()
if (teamNumbers[j].empty())
{
logGlobal->errorStream() << boost::format("Not enough places in team for %s player") % ((j == CPUONLY) ? "CPU" : "CPU or human");
logGlobal->error("Not enough places in team for %s player", ((j == CPUONLY) ? "CPU" : "CPU or human"));
assert (teamNumbers[j].size());
}
auto itTeam = RandomGeneratorUtil::nextItem(teamNumbers[j], rand);
@@ -279,7 +279,7 @@ void CMapGenerator::genZones()
placer.placeZones(mapGenOptions, &rand);
placer.assignZones(mapGenOptions);
logGlobal->infoStream() << "Zones generated successfully";
logGlobal->info("Zones generated successfully");
}
void CMapGenerator::fillZones()
@@ -290,7 +290,7 @@ void CMapGenerator::fillZones()
findZonesForQuestArts();
logGlobal->infoStream() << "Started filling zones";
logGlobal->info("Started filling zones");
//we need info about all town types to evaluate dwellings and pandoras with creatures properly
//place main town in the middle
@@ -378,7 +378,7 @@ void CMapGenerator::fillZones()
map->grailPos = *RandomGeneratorUtil::nextItem(*grailZone->getFreePaths(), rand);
logGlobal->infoStream() << "Zones filled successfully";
logGlobal->info("Zones filled successfully");
}
void CMapGenerator::createObstaclesCommon1()