diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-05-25 18:29:53 +0000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2020-06-18 23:34:48 +1000 |
commit | b8c1bd1fa344acb6f6ca591e0687cd0cba9330a3 (patch) | |
tree | 116430ad9346cd98ab5bd5528595fe9fa4a90f43 /webrtc | |
parent | 78df1ca74ccee09a83b9e30eb307b7f93056e469 (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-x | webrtc/signalling/simple_server.py | 6 |
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 |