From 96353c0833d8426d5e6157125ab39bdda970f1dc Mon Sep 17 00:00:00 2001 From: APTX Date: Sun, 25 Oct 2015 12:56:50 +0100 Subject: [PATCH] Add debug statements for resolving the API host name. --- client.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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? -- 2.52.0