mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-01 12:05:26 +02:00
Missed something
This commit is contained in:
parent
976cec10c9
commit
72bb0969bf
@ -142,7 +142,7 @@ def __init__(self, *args, **kwargs):
|
||||
self.__logging_handlers = {}
|
||||
for name in ('websockets.client', 'websockets.server'):
|
||||
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'))
|
||||
self.__logging_handlers[name] = handler
|
||||
logger.addHandler(handler)
|
||||
|
Loading…
Reference in New Issue
Block a user