Removing old debug statements

This commit is contained in:
stephb9959
2021-11-10 23:29:41 -08:00
parent 9da75bafc9
commit 1751b95308
5 changed files with 1 additions and 39 deletions

View File

@@ -15,18 +15,15 @@ namespace OpenWifi {
return BadRequest(RESTAPI::Errors::MissingOrInvalidParameters);
}
std::cout << __func__ << " : " << __LINE__ << std::endl;
std::string Id;
if(HasParameter("id",Id) && Op=="start") {
return BadRequest(RESTAPI::Errors::MissingOrInvalidParameters);
}
std::cout << __func__ << " : " << __LINE__ << std::endl;
std::string SimId;
if(HasParameter("simulationId",SimId) && Op!="start") {
return BadRequest(RESTAPI::Errors::MissingOrInvalidParameters);
}
std::cout << __func__ << " : " << __LINE__ << std::endl;
std::string Error;
if(Op=="start") {
@@ -36,21 +33,14 @@ namespace OpenWifi {
} else if(Op=="cancel") {
SimulationCoordinator()->CancelSim(Id,Error);
}
std::cout << __func__ << " : " << __LINE__ << std::endl;
if(Error.empty()) {
std::cout << __func__ << " : " << __LINE__ << std::endl;
OWLSObjects::SimulationStatus S;
std::cout << __func__ << " : " << __LINE__ << std::endl;
SimStats()->GetCurrent(S);
std::cout << __func__ << " : " << __LINE__ << std::endl;
Poco::JSON::Object Answer;
std::cout << __func__ << " : " << __LINE__ << std::endl;
S.to_json(Answer);
std::cout << __func__ << " : " << __LINE__ << std::endl;
return ReturnObject(Answer);
}
std::cout << __func__ << " : " << __LINE__ << std::endl;
return BadRequest(Error);
}
}