From c3c2e1b743929909c5b8933f28d6f8a88a1bacf0 Mon Sep 17 00:00:00 2001 From: TylerCG <117808427+TylerCG@users.noreply.github.com> Date: Mon, 12 May 2025 16:30:19 -0400 Subject: [PATCH] logging --- app/download.py | 2 +- app/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/download.py b/app/download.py index bb2f94c..b36972a 100644 --- a/app/download.py +++ b/app/download.py @@ -9,7 +9,7 @@ logging.basicConfig( format='%(asctime)s - %(levelname)s - %(message)s' ) -logger = logging.getLogger(__name__) +logger = logging.getLogger("download_logger") # Define the hook function def my_hook(d): diff --git a/app/main.py b/app/main.py index 646f516..f643fed 100644 --- a/app/main.py +++ b/app/main.py @@ -13,7 +13,7 @@ os.makedirs("/data/logs", exist_ok=True) # Setup timed rotating logger log_path = "/data/logs/syllabus.log" -logger = logging.getLogger(__name__) +logger = logging.getLogger("main_logger") logger.setLevel(logging.DEBUG) # Remove any default handlers