From: APTX Date: Sun, 25 Oct 2015 12:18:18 +0000 (+0100) Subject: fixup! Add debug statements for resolving the API host name. X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=5ab3e2dde217204a9f2fbb3379e3e8803b6c507d;p=anidbudpclient.git fixup! Add debug statements for resolving the API host name. --- diff --git a/client.cpp b/client.cpp index 2023744..7ebcdd4 100644 --- a/client.cpp +++ b/client.cpp @@ -292,6 +292,7 @@ void Client::enterConnectingState() qDebug() << "Entering Connecting State"; #endif + qDebug() << "Host address is:" << m_hostAddress; if (!m_hostAddress.isNull()) { if (socket->bind(QHostAddress::Any, m_localPort)) @@ -309,6 +310,8 @@ qDebug() << "Successful connection"; emit connectionError(); return; } + + qDebug() << "Resolving Host address"; QHostInfo::lookupHost(m_host, this, SLOT(lookedUp(QHostInfo))); } @@ -326,13 +329,11 @@ qDebug() << "Host lookup finished"; return; } -#ifdef ANIDBUDPCLIENT_CLIENT_MISC_DEBUG qDebug() << "Resolved" << hostInfo.hostName() << "to the following addresses:"; for (auto&& address : hostInfo.addresses()) qDebug() << address; qDebug() << "Using" << hostInfo.addresses()[0]; -#endif m_hostAddress = hostInfo.addresses()[0];