Revert back to using logging over console.log where possible

It seems the commit I made to do this change initially seemed to help, it was actually pointless and issues I had were caused by other problems.

For consistency it seems best to stick with the logging module with the RichHandler applied. Using just console.log means being unable to control the log level and which level of logs appear.
This commit is contained in:
rlaphoenix
2023-02-26 21:03:36 +00:00
parent 401d0481df
commit eb3f268d64
10 changed files with 134 additions and 120 deletions

View File

@@ -26,7 +26,6 @@ from pywidevine.pssh import PSSH
from requests import Session
from rich import filesize
from devine.core.console import console
from devine.core.constants import AnyTrack
from devine.core.downloaders import aria2c
from devine.core.drm import Widevine
@@ -545,7 +544,7 @@ class DASH:
except KeyboardInterrupt:
state_event.set()
pool.shutdown(wait=False, cancel_futures=True)
console.log("Received Keyboard Interrupt, stopping...")
log.info("Received Keyboard Interrupt, stopping...")
return
@staticmethod