From 91e1025f04519a5560361b09dfccd4b5239e36e6 Mon Sep 17 00:00:00 2001 From: the harder the luckier Date: Thu, 7 Mar 2024 16:15:59 +0800 Subject: [PATCH] dcutr: fix log format to actually print error (#2725) --- p2p/protocol/holepunch/svc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2p/protocol/holepunch/svc.go b/p2p/protocol/holepunch/svc.go index 70fd0ef55b..9de0a11e0c 100644 --- a/p2p/protocol/holepunch/svc.go +++ b/p2p/protocol/holepunch/svc.go @@ -182,7 +182,7 @@ func (s *Service) incomingHolePunch(str network.Stream) (rtt time.Duration, remo } if err := str.Scope().ReserveMemory(maxMsgSize, network.ReservationPriorityAlways); err != nil { - log.Debugf("error reserving memory for stream: %s, err") + log.Debugf("error reserving memory for stream: %s", err) return 0, nil, nil, err } defer str.Scope().ReleaseMemory(maxMsgSize)