Commit bf09a248 authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

Commented console json output

parent ddad1001
...@@ -84,7 +84,7 @@ QByteArray NetworkPackage::serialize() const ...@@ -84,7 +84,7 @@ QByteArray NetworkPackage::serialize() const
qDebug() << "Serialization error:" << serializer.errorMessage(); qDebug() << "Serialization error:" << serializer.errorMessage();
} else { } else {
if (!isEncrypted()) { if (!isEncrypted()) {
qDebug() << "Serialized package:" << json; //qDebug() << "Serialized package:" << json;
} }
json.append('\n'); json.append('\n');
} }
...@@ -107,11 +107,7 @@ bool NetworkPackage::unserialize(const QByteArray& a, NetworkPackage* np) ...@@ -107,11 +107,7 @@ bool NetworkPackage::unserialize(const QByteArray& a, NetworkPackage* np)
QJson::QObjectHelper::qvariant2qobject(variant, np); QJson::QObjectHelper::qvariant2qobject(variant, np);
if (!np->isEncrypted()) { if (!np->isEncrypted()) {
//qDebug() << "Unserialized package:" << a; //qDebug() << "Unserialized: " << a;
}
if (!np->isEncrypted()) {
qDebug() << "Unserialize: " << a;
} }
np->mPayloadSize = variant["payloadSize"].toInt(); //Will return 0 if was not present, which is ok np->mPayloadSize = variant["payloadSize"].toInt(); //Will return 0 if was not present, which is ok
......
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