From ff027991e0154631ef9fb81a7f2f27a4722e3bc9 Mon Sep 17 00:00:00 2001 From: Benex254 Date: Sat, 17 Aug 2024 22:52:11 +0300 Subject: [PATCH] chore: rename logfile --- fastanime/cli/__init__.py | 4 ++-- fastanime/constants.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fastanime/cli/__init__.py b/fastanime/cli/__init__.py index c7b3a16..c7800bb 100644 --- a/fastanime/cli/__init__.py +++ b/fastanime/cli/__init__.py @@ -192,12 +192,12 @@ def run_cli( elif log_file: import logging - from ..constants import NOTIFIER_LOG_FILE_PATH + from ..constants import LOG_FILE_PATH format = "%(asctime)s%(levelname)s: %(message)s" logging.basicConfig( level=logging.DEBUG, - filename=NOTIFIER_LOG_FILE_PATH, + filename=LOG_FILE_PATH, format=format, datefmt="[%d/%m/%Y@%H:%M:%S]", filemode="w", diff --git a/fastanime/constants.py b/fastanime/constants.py index 68503e4..85e9b70 100644 --- a/fastanime/constants.py +++ b/fastanime/constants.py @@ -76,7 +76,7 @@ Path(USER_VIDEOS_DIR).mkdir(parents=True, exist_ok=True) # useful paths USER_DATA_PATH = os.path.join(APP_DATA_DIR, "user_data.json") USER_CONFIG_PATH = os.path.join(APP_DATA_DIR, "config.ini") -NOTIFIER_LOG_FILE_PATH = os.path.join(APP_DATA_DIR, "notifier.log") +LOG_FILE_PATH = os.path.join(APP_DATA_DIR, "fastanime.log") USER_NAME = os.environ.get("USERNAME", "Anime fun")