commit 726ad2bfb953b48bd8e0829d93a9b63f3e237bd1 Author: David Fifield david@bamsoftware.com Date: Sat Jan 16 09:37:27 2016 -0800
Make logging in server match client (no payloads). --- server/snowflake.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/server/snowflake.go b/server/snowflake.go index 30036e0..de6cc76 100644 --- a/server/snowflake.go +++ b/server/snowflake.go @@ -50,7 +50,8 @@ func (c *webRTCConn) Read(b []byte) (int, error) { }
func (c *webRTCConn) Write(b []byte) (int, error) { - log.Printf("webrtc Write %d %+q", len(b), string(b)) + // log.Printf("webrtc Write %d %+q", len(b), string(b)) + log.Printf("Write %d bytes --> WebRTC", len(b)) c.dc.Send(b) return len(b), nil } @@ -104,7 +105,8 @@ 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) + log.Printf("OnMessage <--- %d bytes", len(msg)) n, err := pw.Write(msg) if err != nil { pw.CloseWithError(err)