diff --git a/api.py b/api.py index 9dc0bc2..3bc05b5 100644 --- a/api.py +++ b/api.py @@ -80,7 +80,7 @@ from utils.normalization import normaliser_type_tiers logging.basicConfig( level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", - handlers=[logging.FileHandler("sage_api.log"), logging.StreamHandler()], + handlers=[logging.FileHandler("/app/logs/sage_api.log"), logging.StreamHandler()], ) logger = logging.getLogger(__name__) diff --git a/config.py b/config.py index 1b3125e..63bf99b 100644 --- a/config.py +++ b/config.py @@ -49,7 +49,7 @@ class Settings(BaseSettings): # === Email Queue === max_email_workers: int = 3 max_retry_attempts: int = 3 - retry_delay_seconds: int = 60 + retry_delay_seconds: int = 3 # === CORS === cors_origins: List[str] = ["*"] diff --git a/docker-compose.yml b/docker-compose.yml index 0ac250d..67c8207 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,7 @@ services: env_file: .env volumes: - ./data:/app/data + - ./logs:/app/logs ports: - "8000:8000" restart: unless-stopped