[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[snowflake/master] Log WebSocket→WebRTC messages in debug mode.



commit 7c519b2975642dbe36f35216cbf48b334499408b
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Tue Dec 4 15:48:13 2018 -0700

    Log WebSocketâ??WebRTC messages in debug mode.
    
    Same as the other direction.
---
 proxy/proxypair.coffee | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/proxy/proxypair.coffee b/proxy/proxypair.coffee
index 195f8fe..4f401b0 100644
--- a/proxy/proxypair.coffee
+++ b/proxy/proxypair.coffee
@@ -139,8 +139,9 @@ class ProxyPair
 
   # websocket --> WebRTC
   onRelayToClientMessage: (event) =>
+    if DEBUG
+      log 'websocket --> WebRTC data: ' + event.data.byteLength + ' bytes'
     @r2cSchedule.push event.data
-    # log 'websocket --> WebRTC data: ' + event.data.byteLength + ' bytes'
     @flush()
 
   onError: (event) =>



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits