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,