Skip to content
Snippets Groups Projects
Commit 97e967c0 authored by Kai Koehne's avatar Kai Koehne
Browse files

QmlProfilerTool: Print warning about failing connect ervery 5 seconds

Before it was every second after 10 seconds.

Change-Id: Ied0a19ab620fdfd42ab565bbb49da685f862b079
Reviewed-on: http://codereview.qt.nokia.com/3498


Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarChristiaan Janssen <christiaan.janssen@nokia.com>
parent e0a2d8ee
No related branches found
No related tags found
No related merge requests found
...@@ -248,7 +248,7 @@ void QmlProfilerApplication::tryToConnect() ...@@ -248,7 +248,7 @@ void QmlProfilerApplication::tryToConnect()
Q_ASSERT(!m_connection.isConnected()); Q_ASSERT(!m_connection.isConnected());
++ m_connectionAttempts; ++ m_connectionAttempts;
if (m_connectionAttempts > 10) {// 10 seconds if (!m_verbose && !(m_connectionAttempts % 5)) {// print every 5 seconds
if (!m_verbose) if (!m_verbose)
logError(QString("Could not connect to %1:%2 for %3 seconds ...").arg( logError(QString("Could not connect to %1:%2 for %3 seconds ...").arg(
m_hostName, QString::number(m_port), QString::number(m_connectionAttempts))); m_hostName, QString::number(m_port), QString::number(m_connectionAttempts)));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment