Commit 7ff99f1b authored by Ulrich Kemloh's avatar Ulrich Kemloh

Cleaning logs output

parent a8f2c93d
...@@ -50,7 +50,7 @@ void JPSclient::ProcessAgentQueue(Building* building) ...@@ -50,7 +50,7 @@ void JPSclient::ProcessAgentQueue(Building* building)
{ {
SendAgentToMatsim(ped); SendAgentToMatsim(ped);
} }
std::cout<<"deleting from the client:"<<std::endl; //std::cout<<"deleting from the client:"<<std::endl;
building->DeletePedestrian(ped); building->DeletePedestrian(ped);
} }
} }
......
...@@ -50,14 +50,14 @@ Status JPSserver::reqMATSim2ExternPutAgent(ServerContext* context, ...@@ -50,14 +50,14 @@ Status JPSserver::reqMATSim2ExternPutAgent(ServerContext* context,
string agent_id=request->agent().id(); string agent_id=request->agent().id();
string leave_node=request->agent().nodes(0);//just the first node string leave_node=request->agent().nodes(0);//just the first node
string enter_node=request->agent().enternode(); string enter_node=request->agent().enternode();
std::cout << "I am taking the agent: " << agent_id<< " going to "<<leave_node<<std::endl; Log->Write("INFO:\tRPC::JPSserver I am taking agent %s going to node %s ",agent_id.c_str(),leave_node.c_str());
auto srcs=_agentSrcMng.GetSources(); auto srcs=_agentSrcMng.GetSources();
cout<<"There are: "<<srcs.size()<<" options"<<endl; //cout<<"There are: "<<srcs.size()<<" options"<<endl;
for(auto&& src:srcs) for(auto&& src:srcs)
{ {
cout<<"size: "<<src->GetPoolSize()<<endl; //cout<<"size: "<<src->GetPoolSize()<<endl;
if(src->GetId()==std::stoi(enter_node)) if(src->GetId()==std::stoi(enter_node))
{ {
std::vector<Pedestrian*> peds; std::vector<Pedestrian*> peds;
......
...@@ -76,7 +76,7 @@ bool AgentsSourcesManager::ProcessAllSources() ...@@ -76,7 +76,7 @@ bool AgentsSourcesManager::ProcessAllSources()
} }
AgentsQueue::Add(peds); AgentsQueue::Add(peds);
empty = false; empty = false;
cout << "Agents generated: " << peds.size() << endl; //cout << "Agents generated: " << peds.size() << endl;
} }
//src->Dump();//exit(0); //src->Dump();//exit(0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment