mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue