From: Matt Joiner <anacrolix@gmail.com>
Date: Mon, 25 Oct 2021 10:03:51 +0000 (+1100)
Subject: Quote webrtc offer ID as ASCII-only
X-Git-Tag: v1.34.0^2~4
X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=e7426133e212f7ad3d5de70cbe495a4f89373488;p=btrtrc.git

Quote webrtc offer ID as ASCII-only
---

diff --git a/webtorrent/tracker_client.go b/webtorrent/tracker_client.go
index e6908c74..d75b9f9b 100644
--- a/webtorrent/tracker_client.go
+++ b/webtorrent/tracker_client.go
@@ -334,7 +334,7 @@ func (tc *TrackerClient) handleAnswer(offerId string, answer webrtc.SessionDescr
 	defer tc.mu.Unlock()
 	offer, ok := tc.outboundOffers[offerId]
 	if !ok {
-		tc.Logger.WithDefaultLevel(log.Warning).Printf("could not find offer for id %q", offerId)
+		tc.Logger.WithDefaultLevel(log.Warning).Printf("could not find offer for id %+q", offerId)
 		return
 	}
 	//tc.Logger.WithDefaultLevel(log.Debug).Printf("offer %q got answer %v", offerId, answer)