Replace log.info calls with console.log calls

I've moved log.info calls to console.log calls to reduce conflicts of logs at the same time as console refreshes, but also to reduce unnecessary log level text being printed to the console.

We don't need to know if a log is an `info` level log, but I've kept log.error's and such as we would want to know if a log is an error log and such.
This commit is contained in:
rlaphoenix
2023-02-25 12:11:17 +00:00
parent 3e1a067724
commit 62d91a3e77
9 changed files with 133 additions and 139 deletions

View File

@@ -23,6 +23,7 @@ from pywidevine.pssh import PSSH
from requests import Session
from tqdm import tqdm
from devine.core.console import console
from devine.core.constants import AnyTrack
from devine.core.downloaders import aria2c
from devine.core.drm import DRM_T, ClearKey, Widevine
@@ -371,7 +372,7 @@ class HLS:
except KeyboardInterrupt:
state_event.set()
pool.shutdown(wait=False, cancel_futures=True)
log.info("Received Keyboard Interrupt, stopping...")
console.log("Received Keyboard Interrupt, stopping...")
return
@staticmethod