1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +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

@@ -480,7 +480,7 @@ void HeroRecruited::applyCl(CClient *cl)
CGHeroInstance *h = GS(cl)->map->heroesOnMap.back();
if(h->subID != hid)
{
logNetwork->errorStream() << "Something wrong with hero recruited!";
logNetwork->error("Something wrong with hero recruited!");
}
bool needsPrinting = true;
@@ -524,7 +524,7 @@ void InfoWindow::applyCl(CClient *cl)
if(vstd::contains(cl->playerint,player))
cl->playerint.at(player)->showInfoDialog(str,comps,(soundBase::soundID)soundID);
else
logNetwork->warnStream() << "We received InfoWindow for not our player...";
logNetwork->warn("We received InfoWindow for not our player...");
}
void SetObjectProperty::applyCl(CClient *cl)
@@ -567,7 +567,7 @@ void BlockingDialog::applyCl(CClient *cl)
if(vstd::contains(cl->playerint,player))
cl->playerint.at(player)->showBlockingDialog(str,components,queryID,(soundBase::soundID)soundID,selection(),cancel());
else
logNetwork->warnStream() << "We received YesNoDialog for not our player...";
logNetwork->warn("We received YesNoDialog for not our player...");
}
void GarrisonDialog::applyCl(CClient *cl)
@@ -776,7 +776,7 @@ void PackageApplied::applyCl(CClient *cl)
{
INTERFACE_CALL_IF_PRESENT(player, requestRealized, this);
if(!CClient::waitingRequest.tryRemovingElement(requestID))
logNetwork->warnStream() << "Surprising server message!";
logNetwork->warn("Surprising server message!");
}
void SystemMessage::applyCl(CClient *cl)