Skip to content

Commit

Permalink
Format the establishDataChannel error log message like other log mess…
Browse files Browse the repository at this point in the history
…ages.

It was sticking out in the context of other log messages.

2020/04/30 22:39:10 WebRTC: DataChannel created.
2020/04/30 22:39:20 establishDataChannel: timeout waiting for DataChannel.OnOpen
2020/04/30 22:39:20 WebRTC: closing PeerConnection
2020/04/30 22:39:20 WebRTC: Closing
2020/04/30 22:39:20 WebRTC: WebRTC: Could not establish DataChannel  Retrying in 10s...
  • Loading branch information
David Fifield committed May 1, 2020
1 parent 72cfb96 commit c8293a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/lib/webrtc.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (c *WebRTCPeer) connect(config *webrtc.Configuration, broker *BrokerChannel
}
c.transport, err = c.establishDataChannel()
if err != nil {
log.Printf("establishDataChannel: %v", err)
log.Printf("WebRTC: establishing data channel: %v", err)
// nolint: golint
return errors.New("WebRTC: Could not establish DataChannel")
}
Expand Down

0 comments on commit c8293a5

Please sign in to comment.