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

log changes, squash

This commit is contained in:
Thomas Winget 2022-11-28 18:53:37 -05:00
parent ee637b2773
commit adb6d972ea
3 changed files with 4 additions and 3 deletions

View file

@ -1327,7 +1327,7 @@ namespace llarp
LogWarn("invalid incoming quic packet, dropping");
return false;
}
LogInfo("tag active T=", tag);
log::trace(logcat, "tag active T={}", tag);
quic->receive_packet(tag, buf);
return true;
}

View file

@ -708,7 +708,7 @@ namespace llarp::quic
log::debug(logcat, "cannot add to stream {} right now: stream is blocked", stream.id());
break;
case NGTCP2_ERR_STREAM_SHUT_WR:
log::debug(logcat, "cannot write to {}: stream is shut down", stream.id());
log::trace(logcat, "cannot write to {}: stream is shut down", stream.id());
break;
default:
assert(consumed <= 0);
@ -771,7 +771,7 @@ namespace llarp::quic
0ms,
std::chrono::duration_cast<std::chrono::milliseconds>(
expiry - get_time().time_since_epoch()));
log::debug(logcat, "Next retransmit in {}ms", expires_in.count());
log::trace(logcat, "Next retransmit in {}ms", expires_in.count());
retransmit_timer->stop();
retransmit_timer->start(expires_in, 0ms);
}

View file

@ -150,6 +150,7 @@ namespace llarp::quic
if (auto result = read_packet(p, conn); !result)
{
log::warning(logcat, "Read packet failed! {}", ngtcp2_strerror(result.error_code));
log::debug(logcat, "Packet: {}", buffer_printer{p.data});
}
// FIXME - reset idle timer?