Skip to content

Commit 91e1025

Browse files
authored
dcutr: fix log format to actually print error (#2725)
1 parent bf5acb8 commit 91e1025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/protocol/holepunch/svc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func (s *Service) incomingHolePunch(str network.Stream) (rtt time.Duration, remo
182182
}
183183

184184
if err := str.Scope().ReserveMemory(maxMsgSize, network.ReservationPriorityAlways); err != nil {
185-
log.Debugf("error reserving memory for stream: %s, err")
185+
log.Debugf("error reserving memory for stream: %s", err)
186186
return 0, nil, nil, err
187187
}
188188
defer str.Scope().ReleaseMemory(maxMsgSize)

0 commit comments

Comments
 (0)