Code cleanup, printouts removed
This commit is contained in:
parent
37dcc1ff4f
commit
af2ae018cb
4 changed files with 4 additions and 11 deletions
|
@ -57,7 +57,6 @@ LiveMessageToken LiveMessageToken::parseToken(const QByteArray &string, int* sta
|
|||
++(*start);
|
||||
int index = string.indexOf('s', (*start));
|
||||
if (index < 0) {
|
||||
qDebug() << "Error in" << string;
|
||||
return d;
|
||||
}
|
||||
bool ok;
|
||||
|
@ -87,7 +86,6 @@ LiveMessageToken LiveMessageToken::parseToken(const QByteArray &string, int* sta
|
|||
} else { //String
|
||||
int index = string.indexOf(':', (*start));
|
||||
if (index < 0) {
|
||||
qDebug() << "Error in" << string;
|
||||
return d;
|
||||
}
|
||||
bool ok;
|
||||
|
|
|
@ -93,13 +93,13 @@ void LiveObject::disconnect() {
|
|||
|
||||
void LiveObject::readyRead() {
|
||||
QByteArray ba = d->socket->readAll();
|
||||
qDebug() << ba;
|
||||
//qDebug() << ba;
|
||||
QScopedPointer<LiveMessage> envelope(LiveMessage::fromByteArray(ba));
|
||||
QString signature = envelope->name();
|
||||
QScopedPointer<LiveMessage> msg(LiveMessage::fromByteArray(envelope->arg(0).stringVal.toUtf8()));
|
||||
|
||||
if (signatureForMessage(envelope->arg(0).stringVal.toUtf8()) != signature) {
|
||||
qDebug() << "HASH mismatch!" << msg->name();
|
||||
//qDebug() << "HASH mismatch!" << msg->name();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -203,8 +203,6 @@ void LiveObject::stateChanged( QAbstractSocket::SocketState socketState ) {
|
|||
emit statusChanged("Reconnecting in " + QString::number(timeout) + " seconds...");
|
||||
} else if (socketState == QAbstractSocket::ConnectingState) {
|
||||
emit statusChanged("Connecting...");
|
||||
} else {
|
||||
//qDebug() << "State:" << socketState;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -215,7 +213,7 @@ void LiveObject::sslErrors( const QList<QSslError> & errors ) {
|
|||
case QSslError::SelfSignedCertificate:
|
||||
continue;
|
||||
default:
|
||||
qDebug() << "SSL" << error.errorString();
|
||||
//qDebug() << "SSL" << error.errorString();
|
||||
everythingOK = false;
|
||||
emit statusChanged("SSL Error");
|
||||
emit errorChanged(error.errorString());
|
||||
|
@ -251,7 +249,7 @@ void LiveObject::serverAssignReply( QNetworkReply *r ) {
|
|||
}
|
||||
|
||||
if (found) {
|
||||
qDebug() << "Servers found, retry direct...";
|
||||
//qDebug() << "Servers found, retry direct...";
|
||||
d->serverRefreshTime = QDateTime::currentDateTime();
|
||||
QTimer::singleShot(0, this, SLOT(connectToServer()));
|
||||
} else {
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#include <QVBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QTimer>
|
||||
#include <QDebug>
|
||||
|
||||
Message::Message(QWidget *parent)
|
||||
:QWidget(parent)
|
||||
|
@ -20,7 +19,6 @@ Message::Message(QWidget *parent)
|
|||
}
|
||||
|
||||
Message::~Message() {
|
||||
qDebug() << "Why am I dying?";
|
||||
}
|
||||
|
||||
void Message::showMessage( const QString &title, const QString &message, const QString &detailedMessage ) {
|
||||
|
|
|
@ -132,7 +132,6 @@ void TelldusCenterApplication::loadScripts() {
|
|||
if (extension.startsWith("...")) {
|
||||
continue;
|
||||
}
|
||||
// qDebug() << "Loading extension:" << extension;
|
||||
foreach(QDir dir, this->libraryPaths()) {
|
||||
dir.cd("script");
|
||||
QString path = extension;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue