commit c8293a5de315ddc5e212e0c894ebdc82a46ce1e1
Author: David Fifield <david(a)bamsoftware.com>
Date: Fri May 1 10:30:04 2020 -0600
Format the establishDataChannel error log message like other log messages.
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...
---
client/lib/webrtc.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/lib/webrtc.go b/client/lib/webrtc.go
index 23cb3e1..af5a45a 100644
--- a/client/lib/webrtc.go
+++ b/client/lib/webrtc.go
@@ -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")
}