]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Quote webrtc offer ID as ASCII-only
authorMatt Joiner <anacrolix@gmail.com>
Mon, 25 Oct 2021 10:03:51 +0000 (21:03 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 25 Oct 2021 10:03:51 +0000 (21:03 +1100)
webtorrent/tracker_client.go

index e6908c74235d443a7aead91227c16047ff7f751a..d75b9f9bbd5973335acc7ea1cbfec84530028669 100644 (file)
@@ -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)