From 5ab3e2dde217204a9f2fbb3379e3e8803b6c507d Mon Sep 17 00:00:00 2001 From: APTX Date: Sun, 25 Oct 2015 13:18:18 +0100 Subject: [PATCH] fixup! Add debug statements for resolving the API host name. --- client.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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]; -- 2.52.0