Merge pull request #2803 from lucas-clemente/fix-retry-logging

fix logging of received Retry packets
This commit is contained in:
Marten Seemann
2020-09-26 17:53:04 +07:00
committed by GitHub

View File

@@ -902,8 +902,11 @@ func (s *session) handleRetryPacket(hdr *wire.Header, data []byte) bool /* was t
return false
}
s.logger.Debugf("<- Received Retry: %#v", hdr)
s.logger.Debugf("Switching destination connection ID to: %s", hdr.SrcConnectionID)
if s.logger.Debug() {
s.logger.Debugf("<- Received Retry:")
(&wire.ExtendedHeader{Header: *hdr}).Log(s.logger)
s.logger.Debugf("Switching destination connection ID to: %s", hdr.SrcConnectionID)
}
if s.tracer != nil {
s.tracer.ReceivedRetry(hdr)
}