mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-02-11 20:47:55 +01:00
Always send to stdout
This commit is contained in:
parent
2c7ddb6234
commit
f1f1af9c67
1 changed files with 1 additions and 4 deletions
|
@ -79,10 +79,7 @@ class WebsocketsLoggingHandler(logging.Handler):
|
||||||
def emit(self, record):
|
def emit(self, record):
|
||||||
try:
|
try:
|
||||||
msg = self.format(record)
|
msg = self.format(record)
|
||||||
if record.levelno >= logging.ERROR:
|
self._logger.stdout(msg)
|
||||||
self._logger.error(msg)
|
|
||||||
else:
|
|
||||||
self._logger.stdout(msg)
|
|
||||||
|
|
||||||
except Exception:
|
except Exception:
|
||||||
self.handleError(record)
|
self.handleError(record)
|
||||||
|
|
Loading…
Add table
Reference in a new issue