mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Keep quoted log messages ASCII.
This commit is contained in:
parent
17fd424647
commit
c519813cf7
2 changed files with 6 additions and 6 deletions
|
@ -103,7 +103,7 @@ func datachannelHandler(conn *webRTCConn) {
|
|||
pw.Close()
|
||||
}
|
||||
dc.OnMessage = func(msg []byte) {
|
||||
log.Printf("OnMessage channel %d %q", len(msg), msg)
|
||||
log.Printf("OnMessage channel %d %+q", len(msg), msg)
|
||||
n, err := pw.Write(msg)
|
||||
if err != nil {
|
||||
pw.CloseWithError(err)
|
||||
|
@ -144,7 +144,7 @@ func readSignalingMessages(signalChan chan *webrtc.SessionDescription, f *os.Fil
|
|||
msg := s.Text()
|
||||
sdp := webrtc.DeserializeSessionDescription(msg)
|
||||
if sdp == nil {
|
||||
log.Printf("ignoring invalid signal message %q", msg)
|
||||
log.Printf("ignoring invalid signal message %+q", msg)
|
||||
continue
|
||||
}
|
||||
signalChan <- sdp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue