From: APTX Date: Sun, 25 Oct 2015 11:56:50 +0000 (+0100) Subject: Add debug statements for resolving the API host name. X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=96353c0833d8426d5e6157125ab39bdda970f1dc;p=anidbudpclient.git Add debug statements for resolving the API host name. --- diff --git a/client.cpp b/client.cpp index 634e2bc..2023744 100644 --- a/client.cpp +++ b/client.cpp @@ -325,6 +325,15 @@ qDebug() << "Host lookup finished"; emit connectionError(); 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]; // TODO could it be nicer?