Log resolved IP addresses

This commit is contained in:
badaix 2024-03-27 21:15:42 +01:00
parent be083d2e8e
commit 6ff39074c0

View file

@ -137,8 +137,9 @@ void ClientConnection::connect(const ResultHandler& handler)
handler(ec);
return;
}
std::for_each(iterator, {}, [this](auto& it) { LOG(DEBUG, LOG_TAG) << "Resolved IP: " << it.endpoint().address().to_string() << "\n"; });
LOG(INFO, LOG_TAG) << "Connecting\n";
LOG(INFO, LOG_TAG) << "Connecting to " << iterator->endpoint() << "\n";
socket_.connect(*iterator, ec);
if (ec)
{