mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-09 06:27:06 +01:00
Missed something
This commit is contained in:
parent
976cec10c9
commit
72bb0969bf
@ -142,7 +142,7 @@ def __init__(self, *args, **kwargs):
|
|||||||
self.__logging_handlers = {}
|
self.__logging_handlers = {}
|
||||||
for name in ('websockets.client', 'websockets.server'):
|
for name in ('websockets.client', 'websockets.server'):
|
||||||
logger = logging.getLogger(name)
|
logger = logging.getLogger(name)
|
||||||
handler = logging.StreamHandler(stream=sys.stdout)
|
handler = WebsocketsLoggingHandler(logger=self._logger)
|
||||||
handler.setFormatter(logging.Formatter(f'{self.RH_NAME}: [{name}] %(message)s'))
|
handler.setFormatter(logging.Formatter(f'{self.RH_NAME}: [{name}] %(message)s'))
|
||||||
self.__logging_handlers[name] = handler
|
self.__logging_handlers[name] = handler
|
||||||
logger.addHandler(handler)
|
logger.addHandler(handler)
|
||||||
|
Loading…
Reference in New Issue
Block a user