From 71a415c66ea1b5280705da46ebbf9f6ebe0c8aa4 Mon Sep 17 00:00:00 2001 From: Martin Kampas Date: Thu, 8 Feb 2018 12:16:06 +0100 Subject: Improve log output with blocking connect Change-Id: I920524a535b0b84a7d20facfeecd261a7134cdc8 Reviewed-by: Svetlana Abramenkova --- src/remotereceiver.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/remotereceiver.cpp b/src/remotereceiver.cpp index 0175d44..d3de7f7 100644 --- a/src/remotereceiver.cpp +++ b/src/remotereceiver.cpp @@ -117,8 +117,10 @@ bool RemoteReceiver::listen(int port, ConnectionOptions options) loop.quit(); }); loop.exec(); - if (!pinOk) + if (!pinOk) { + qWarning() << "Refused connection from QmlLive Bench: Wrong pin"; return false; + } } if (m_connectionOptions & UpdateDocumentsOnConnect) { @@ -128,9 +130,13 @@ bool RemoteReceiver::listen(int port, ConnectionOptions options) loop.quit(); }); loop.exec(); - if (!finishedOk) + if (!finishedOk) { + qWarning() << "Initial workspace synchronization with QmlLive Bench failed"; return false; + } } + + qInfo() << "QmlLive Bench connected"; } return true; @@ -179,6 +185,7 @@ void RemoteReceiver::handleCall(const QString &method, const QByteArray &content } else if (m_client) { emit pinOk(false); m_client->send("pinOK(bool)", QByteArray::number(0)); + return; } } -- cgit v1.2.3