mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
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
This commit is contained in:
parent
78df1ca74c
commit
b8c1bd1fa3
1 changed files with 3 additions and 3 deletions
|
@ -261,9 +261,9 @@ class WebRTCSimpleServer(object):
|
||||||
# https://websockets.readthedocs.io/en/stable/api.html#websockets.protocol.WebSocketCommonProtocol
|
# https://websockets.readthedocs.io/en/stable/api.html#websockets.protocol.WebSocketCommonProtocol
|
||||||
max_queue=16)
|
max_queue=16)
|
||||||
|
|
||||||
logger = logging.getLogger('websockets.server')
|
# Setup logging
|
||||||
|
logger = logging.getLogger('websockets')
|
||||||
logger.setLevel(logging.ERROR)
|
logger.setLevel(logging.INFO)
|
||||||
logger.addHandler(logging.StreamHandler())
|
logger.addHandler(logging.StreamHandler())
|
||||||
|
|
||||||
return wsd
|
return wsd
|
||||||
|
|
Loading…
Reference in a new issue