Turn off some debugging in the server.

This commit is contained in:
Ken Moore
2016-05-18 09:03:44 -04:00
parent 826eb104c4
commit ae892c3e5b
2 changed files with 3 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ RestInputStruct::RestInputStruct(QString message, bool isRest){
//Now Parse out the Body into the JSON fields and/or arguments structure
//NOTE: if the body of the message is encrypted, then it needs to be decrypted outside the struct first,
// then run the "ParseBodyIntoJson()" function to read/convert the data as needed.
qDebug() << "Got request:" << message << isRest << Header << bridgeID;
//qDebug() << "Got request:" << message << isRest << Header << bridgeID;
if(Header.isEmpty() || isRest){ //no other data processing needed
ParseBodyIntoJson();
}
@@ -53,7 +53,7 @@ RestInputStruct::RestInputStruct(QString message, bool isRest){
RestInputStruct::~RestInputStruct(){}
void RestInputStruct::ParseBodyIntoJson(){
if(Body.endsWith("\n")){ Body.chop(1); }
while(Body.endsWith("\n")){ Body.chop(1); }
if(Body.startsWith("{") && Body.endsWith("}") ){
QJsonDocument doc = QJsonDocument::fromJson(Body.toUtf8());
if(!doc.isNull() && doc.isObject() ){

View File

@@ -175,7 +175,7 @@ void WebSocket::EvaluateREST(QString msg){
}
void WebSocket::EvaluateRequest(const RestInputStruct &REQ){
qDebug() << "Evaluate Request:" << REQ.namesp << REQ.name << REQ.args;
//qDebug() << "Evaluate Request:" << REQ.namesp << REQ.name << REQ.args;
RestOutputStruct out;
out.in_struct = REQ;
QHostAddress host;