mirror of
https://github.com/glomatico/votify.git
synced 2026-10-13 03:12:25 +02:00
Rename CustomFormatter to CustomLoggerFormatter
This commit is contained in:
+2
-2
@@ -18,7 +18,7 @@ from .constants import (
|
||||
VORBIS_AUDIO_QUALITIES,
|
||||
X_NOT_FOUND_STRING,
|
||||
)
|
||||
from .custom_formatter import CustomFormatter
|
||||
from .custom_logger_formatter import CustomLoggerFormatter
|
||||
from .downloader import Downloader
|
||||
from .downloader_audio import DownloaderAudio
|
||||
from .downloader_episode import DownloaderEpisode
|
||||
@@ -398,7 +398,7 @@ def main(
|
||||
logger = logging.getLogger("votify")
|
||||
logger.setLevel(log_level)
|
||||
stream_handler = logging.StreamHandler()
|
||||
stream_handler.setFormatter(CustomFormatter())
|
||||
stream_handler.setFormatter(CustomLoggerFormatter())
|
||||
logger.addHandler(stream_handler)
|
||||
cookies_path = prompt_path("Cookies file", cookies_path)
|
||||
logger.info("Starting Votify")
|
||||
|
||||
@@ -5,7 +5,7 @@ import colorama
|
||||
from .utils import color_text
|
||||
|
||||
|
||||
class CustomFormatter(logging.Formatter):
|
||||
class CustomLoggerFormatter(logging.Formatter):
|
||||
base_format = "[%(levelname)-8s %(asctime)s]"
|
||||
format_colors = {
|
||||
logging.DEBUG: colorama.Style.DIM,
|
||||
Reference in New Issue
Block a user