summaryrefslogtreecommitdiff
path: root/webrtc
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-05-25 18:29:53 +0000
committerMatthew Waters <matthew@centricular.com>2020-06-18 23:34:48 +1000
commitb8c1bd1fa344acb6f6ca591e0687cd0cba9330a3 (patch)
tree116430ad9346cd98ab5bd5528595fe9fa4a90f43 /webrtc
parent78df1ca74ccee09a83b9e30eb307b7f93056e469 (diff)
simple_server: Fix init of websockets log handler
This has changed since the original code was written: https://websockets.readthedocs.io/en/stable/cheatsheet.html#debugging
Diffstat (limited to 'webrtc')
-rwxr-xr-xwebrtc/signalling/simple_server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/webrtc/signalling/simple_server.py b/webrtc/signalling/simple_server.py
index 7f9123e..9cf2e36 100755
--- a/webrtc/signalling/simple_server.py
+++ b/webrtc/signalling/simple_server.py
@@ -261,9 +261,9 @@ class WebRTCSimpleServer(object):
# https://websockets.readthedocs.io/en/stable/api.html#websockets.protocol.WebSocketCommonProtocol
max_queue=16)
- logger = logging.getLogger('websockets.server')
-
- logger.setLevel(logging.ERROR)
+ # Setup logging
+ logger = logging.getLogger('websockets')
+ logger.setLevel(logging.INFO)
logger.addHandler(logging.StreamHandler())
return wsd