mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 02:20:17 +00:00
Turn off some debugging in the server.
This commit is contained in:
@@ -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() ){
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user