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__ */