From efee250e49404f515b643131c2386d6222555c8f Mon Sep 17 00:00:00 2001 From: AlexVinS Date: Fri, 12 Aug 2016 11:36:24 +0300 Subject: [PATCH] Few more usages of logFormat --- lib/CGameInfoCallback.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/CGameInfoCallback.cpp b/lib/CGameInfoCallback.cpp index 9226b922a..ccda505bc 100644 --- a/lib/CGameInfoCallback.cpp +++ b/lib/CGameInfoCallback.cpp @@ -78,14 +78,14 @@ const PlayerState * CGameInfoCallback::getPlayer(PlayerColor color, bool verbose else { if (verbose) - logGlobal->errorStream() << boost::format("Cannot access player %d info!") % color; + vstd::logErrorFormat(logGlobal, "Cannot access player %d info!", color); return nullptr; } } else { if (verbose) - logGlobal->errorStream() << boost::format("Cannot find player %d info!") % color; + vstd::logErrorFormat(logGlobal, "Cannot find player %d info!", color); return nullptr; } } @@ -835,14 +835,14 @@ const TeamState * CGameInfoCallback::getTeam( TeamID teamID ) const return ret; else { - logGlobal->errorStream() << boost::format("Illegal attempt to access team data!"); + logGlobal->error("Illegal attempt to access team data!"); return nullptr; } } } else { - logGlobal->errorStream() << boost::format("Cannot find info for team %d") % teamID; + vstd::logErrorFormat(logGlobal, "Cannot find info for team %d", teamID); return nullptr; } }