mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
debug statements
This commit is contained in:
parent
7ac5b29d5f
commit
1b31fb15f6
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue