diff --git a/app/core/config.py b/app/core/config.py index 98c278e..0039518 100644 --- a/app/core/config.py +++ b/app/core/config.py @@ -1,8 +1,10 @@ +import logging import os from dotenv import load_dotenv from pydantic import BaseSettings BASE_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '../../')) +logging.info(f"BASE_DIR : {BASE_DIR}") load_dotenv(os.path.join(BASE_DIR, '.env')) diff --git a/app/service/outfit_matcher/outfit_evaluator.py b/app/service/outfit_matcher/outfit_evaluator.py index 4593438..719ee03 100644 --- a/app/service/outfit_matcher/outfit_evaluator.py +++ b/app/service/outfit_matcher/outfit_evaluator.py @@ -1,7 +1,4 @@ import io - -import requests - from PIL import Image import cv2 import numpy as np diff --git a/logging_env.py b/logging_env.py index c6327a7..4de64de 100644 --- a/logging_env.py +++ b/logging_env.py @@ -15,7 +15,7 @@ LOGGER_CONFIG_DICT = { "class": "logging.handlers.RotatingFileHandler", "level": "INFO", "formatter": "simple", - "filename": "logs/info.log", + "filename": "app/logs/info.log", "maxBytes": 10485760, "backupCount": 50, "encoding": "utf8", @@ -24,7 +24,7 @@ LOGGER_CONFIG_DICT = { "class": "logging.handlers.RotatingFileHandler", "level": "ERROR", "formatter": "simple", - "filename": "logs/errors.log", + "filename": "app/logs/errors.log", "maxBytes": 10485760, "backupCount": 20, "encoding": "utf8", @@ -33,7 +33,7 @@ LOGGER_CONFIG_DICT = { "class": "logging.handlers.RotatingFileHandler", "level": "DEBUG", "formatter": "simple", - "filename": "logs/debug.log", + "filename": "app/logs/debug.log", "maxBytes": 10485760, "backupCount": 50, "encoding": "utf8", diff --git a/requirements.txt b/requirements.txt index d897ff0..02328e3 100644 Binary files a/requirements.txt and b/requirements.txt differ