From 16a89a83d22ad3c28d3bae70439d449e1ee4b627 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Sat, 23 Nov 2019 10:49:37 +0700 Subject: [PATCH] improve logging of loss detection timer cancelation --- internal/ackhandler/sent_packet_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ackhandler/sent_packet_handler.go b/internal/ackhandler/sent_packet_handler.go index 3bbee31f..10abe9a5 100644 --- a/internal/ackhandler/sent_packet_handler.go +++ b/internal/ackhandler/sent_packet_handler.go @@ -347,7 +347,7 @@ func (h *sentPacketHandler) setLossDetectionTimer() { // Cancel the alarm if no packets are outstanding if !h.hasOutstandingPackets() { - h.logger.Debugf("setLossDetectionTimer: canceling. Bytes in flight: %d", h.bytesInFlight) + h.logger.Debugf("Canceling loss detection timer. No packets in flight.") h.alarm = time.Time{} return }