Rename CustomFormatter to CustomLoggerFormatter

This commit is contained in:
Rafael Moraes
2025-07-04 18:21:29 -03:00
parent e8f50e1df8
commit f634f2a8ff
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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,