1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

debug statements

This commit is contained in:
dan 2023-03-07 14:00:13 -08:00
parent 7ac5b29d5f
commit 1b31fb15f6
3 changed files with 3 additions and 2 deletions

View file

@ -62,7 +62,6 @@ namespace llarp
void MarkAddressOutbound(AddressVariant_t) override{};
// FIXME
bool
SendToOrQueue(
std::variant<service::Address, RouterID> addr, const llarp_buffer_t& payload, service::ProtocolType t) override;

View file

@ -45,7 +45,7 @@ namespace llarp::quic
Address{SockAddr{"::1"sv, huint16_t{port}}, std::move(remote)}
};
log::debug(logcat, "Connecting to {}", path.remote);
log::debug(logcat, "Connecting to {} with addr_variant {}", path.remote, *path.remote.endpoint);
auto conn = std::make_shared<Connection>(*this, ConnectionID::random(), path, port);
conn->io_ready();

View file

@ -211,6 +211,8 @@ namespace llarp::quic
std::memcpy(&buf_[header_size], data.data(), data.size());
bstring_view outgoing{buf_.data(), outgoing_len};
log::debug(logcat, "to.port: {}, to.remote: {}", to.port(), *to.endpoint);
if (service_endpoint.SendToOrQueue(
*to.endpoint, llarp_buffer_t{outgoing.data(), outgoing.size()}, service::ProtocolType::QUIC))
{