diff --git a/httpserver/https_client.cpp b/httpserver/https_client.cpp index 09fbb984..6e2322c6 100644 --- a/httpserver/https_client.cpp +++ b/httpserver/https_client.cpp @@ -90,13 +90,11 @@ void HttpsClientSession::start() { /// TODO: I think I should just call again if ec == /// EINTR if (ec) { - std::ostringstream os; - os << endpoint; - - LOKI_LOG( - error, - "[https client]: could not connect to {}, message: {} ({})", - os.str(), ec.message(), ec.value()); + LOKI_LOG(error, + "[https client]: could not connect to {}:{}, message: " + "{} ({})", + endpoint.address().to_string(), endpoint.port(), + ec.message(), ec.value()); trigger_callback(SNodeError::NO_REACH, nullptr); return; }