address JTK review comments

This commit is contained in:
Daniel Roth 2026-02-27 12:20:44 +00:00
parent 86ea0e7bc0
commit 3bd4f64586
2 changed files with 10 additions and 3 deletions

View file

@ -4,6 +4,10 @@ from pathlib import Path
from pydantic_settings import BaseSettings, SettingsConfigDict from pydantic_settings import BaseSettings, SettingsConfigDict
from typing import Optional from typing import Optional
from utils.logger import setup_logger
logger = setup_logger()
def resolve_env_file() -> Optional[str]: def resolve_env_file() -> Optional[str]:
env = os.getenv("ENVIRONMENT", "local") env = os.getenv("ENVIRONMENT", "local")
@ -12,12 +16,12 @@ def resolve_env_file() -> Optional[str]:
if env == "local": if env == "local":
env_file = backend_dir / ".env" env_file = backend_dir / ".env"
print("USING ENV FILE:", env_file) logger.debug("USING ENV FILE:", env_file)
return str(env_file) return str(env_file)
if env == "test": if env == "test":
env_file = backend_dir / ".env.test" env_file = backend_dir / ".env.test"
print("USING ENV FILE:", env_file) logger.debug("USING ENV FILE:", env_file)
return str(env_file) return str(env_file)
# prod = no env file # prod = no env file

View file

@ -2,7 +2,10 @@
import json import json
import requests import requests
LAMBDA_URL = "http://localhost:9000/2015-03-31/functions/function/invocations" HOST = "localhost"
PORT = "9000"
LAMBDA_URL = f"http://{HOST}:{PORT}/2015-03-31/functions/function/invocations"
payload = { payload = {
"Records": [ "Records": [