浏览代码

Few more usages of logFormat

AlexVinS 9 年之前
父节点
当前提交
efee250e49
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      lib/CGameInfoCallback.cpp

+ 4 - 4
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;
 	}
 }