From f634f2a8ffa62c8608e54d92f1214747bd4916f9 Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Fri, 4 Jul 2025 18:21:29 -0300 Subject: [PATCH] Rename CustomFormatter to CustomLoggerFormatter --- votify/cli.py | 4 ++-- votify/{custom_formatter.py => custom_logger_formatter.py} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename votify/{custom_formatter.py => custom_logger_formatter.py} (93%) diff --git a/votify/cli.py b/votify/cli.py index 00298ed..f21aa0e 100644 --- a/votify/cli.py +++ b/votify/cli.py @@ -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") diff --git a/votify/custom_formatter.py b/votify/custom_logger_formatter.py similarity index 93% rename from votify/custom_formatter.py rename to votify/custom_logger_formatter.py index 1f6ffb1..bfcd95c 100644 --- a/votify/custom_formatter.py +++ b/votify/custom_logger_formatter.py @@ -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,