From f4bd7c1ca380667872364c0ca962d1945f627992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20Gr=C3=A4f?= Date: Tue, 12 Jun 2018 11:39:40 +0200 Subject: [PATCH] Update BoostConnection.h --- src/net/BoostConnection.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/net/BoostConnection.h b/src/net/BoostConnection.h index c65ddb18..3e3b4855 100644 --- a/src/net/BoostConnection.h +++ b/src/net/BoostConnection.h @@ -57,8 +57,10 @@ public: boost::asio::ip::tcp::resolver::iterator endpointIterator) { if (!error) { + #ifdef APP_DEBUG boost::asio::ip::tcp::endpoint endpoint = *endpointIterator; - + #endif + LOG_DEBUG("[%s:%d] DNS resolved ", endpoint.address().to_string().c_str(), endpoint.port()); m_socket.connect(endpointIterator, boost::bind(&BoostConnection::handleConnect, this->shared_from_this(), boost::asio::placeholders::error)); @@ -159,4 +161,4 @@ private: char receiveBuffer_[2048]; }; -#endif /* __BOOSTCONNECTION_H__ */ \ No newline at end of file +#endif /* __BOOSTCONNECTION_H__ */