mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
Few more usages of logFormat
This commit is contained in:
@@ -78,14 +78,14 @@ const PlayerState * CGameInfoCallback::getPlayer(PlayerColor color, bool verbose
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (verbose)
|
if (verbose)
|
||||||
logGlobal->errorStream() << boost::format("Cannot access player %d info!") % color;
|
vstd::logErrorFormat(logGlobal, "Cannot access player %d info!", color);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (verbose)
|
if (verbose)
|
||||||
logGlobal->errorStream() << boost::format("Cannot find player %d info!") % color;
|
vstd::logErrorFormat(logGlobal, "Cannot find player %d info!", color);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -835,14 +835,14 @@ const TeamState * CGameInfoCallback::getTeam( TeamID teamID ) const
|
|||||||
return ret;
|
return ret;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
logGlobal->errorStream() << boost::format("Illegal attempt to access team data!");
|
logGlobal->error("Illegal attempt to access team data!");
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
logGlobal->errorStream() << boost::format("Cannot find info for team %d") % teamID;
|
vstd::logErrorFormat(logGlobal, "Cannot find info for team %d", teamID);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user