From 1e6262dde5cceb36c4f5d0656c6321d6ca38bc91 Mon Sep 17 00:00:00 2001 From: Titus Tscharntke Date: Tue, 8 Jun 2010 22:59:42 +0000 Subject: [PATCH] printf replaced with debug fro URL printout --- source/glest_game/menu/menu_state_custom_game.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/glest_game/menu/menu_state_custom_game.cpp b/source/glest_game/menu/menu_state_custom_game.cpp index d42c8ea21..68667d6fa 100644 --- a/source/glest_game/menu/menu_state_custom_game.cpp +++ b/source/glest_game/menu/menu_state_custom_game.cpp @@ -1055,10 +1055,13 @@ void MenuStateCustomGame::simpleTask() { publishToServerInfo = ""; safeMutex.ReleaseLock(false); - printf("the request is:\n%s\n",request.c_str()); + //printf("the request is:\n%s\n",request.c_str()); + SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d]the request is:\n%s\n",request.c_str(),__FILE__,__FUNCTION__,__LINE__); + std::string serverInfo = SystemFlags::getHTTP(request); - printf("the result is:\n'%s'\n",serverInfo.c_str()); + //printf("the result is:\n'%s'\n",serverInfo.c_str()); + SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line %d]the result is:\n'%s'\n",serverInfo.c_str(),__FILE__,__FUNCTION__,__LINE__); // uncomment to enable router setup check of this server //if(serverInfo!="OK") if(EndsWith(serverInfo, "OK") == false)