Changed debug output to use output macros instead of std::cout directly

This commit is contained in:
DennisOSRM 2012-02-09 17:51:05 +01:00
parent 12c547126e
commit bb8645dd18

View File

@ -51,11 +51,11 @@ public:
void handle_request(const Request& req, Reply& rep){ void handle_request(const Request& req, Reply& rep){
//parse command //parse command
std::string request(req.uri); std::string request(req.uri);
//std::cout << "[r] " << request << std::endl; // INFO( "[r] " << request );
std::string command; std::string command;
std::size_t firstAmpPosition = request.find_first_of("&"); std::size_t firstAmpPosition = request.find_first_of("&");
command = request.substr(1,firstAmpPosition-1); command = request.substr(1,firstAmpPosition-1);
// std::cout << "[debug] looking for handler for command: " << command << std::endl; // DEBUG("[debug] looking for handler for command: " << command);
try { try {
if(pluginMap.Holds(command)) { if(pluginMap.Holds(command)) {