Skip to content

Commit

Permalink
Add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Aug 23, 2024
1 parent d6dee94 commit 4345acc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions p2p/transport/quic/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ func (t *transport) findListenerForDial(addr ma.Multiaddr) (*listener, error) {
for _, l := range ls {
lnetw, _, err := manet.DialArgs(l.Multiaddr())
if err != nil {
log.Debugw("failed to parse listener multiaddr", "multiaddr", l.Multiaddr(), "error", err)
continue
}
if lnetw == netw {
Expand Down
1 change: 1 addition & 0 deletions p2p/transport/webtransport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ func (t *transport) findListenerForDial(addr ma.Multiaddr) (*listener, error) {
for _, l := range t.listeners {
lnetw, _, err := manet.DialArgs(l.multiaddr)
if err != nil {
log.Debugw("failed to parse listener multiaddr", "multiaddr", l.multiaddr, "error", err)
continue
}
if lnetw == netw {
Expand Down

0 comments on commit 4345acc

Please sign in to comment.