flip_api.db.seed.seed_logger ============================ .. py:module:: flip_api.db.seed.seed_logger .. autoapi-nested-parse:: Dedicated logger for the database seeding phase. `flip_api.utils.logger` exports `logging.getLogger("uvicorn")`, which is the right logger for request-path code (uvicorn attaches handlers when it boots). But `entrypoint.sh` runs `python src/flip_api/db/seed/seed_essential_data.py` as a standalone process before uvicorn boots — at that point the "uvicorn" logger has no handlers and Python's `lastResort` silently drops everything below WARNING. Every seed-phase `logger.info`/`logger.debug` is invisible. This module owns a self-contained logger with its own `StreamHandler(stderr)` so seed-phase output reaches CloudWatch regardless of who runs the script. Propagation is left enabled so pytest's `caplog` (which hooks the root logger) can still capture records during tests — the "double-print" risk under uvicorn is theoretical: uvicorn configures the "uvicorn" logger, not root, so a "flip_api.seed" record propagating to root finds no extra handlers in normal production. Attributes ---------- .. autoapisummary:: flip_api.db.seed.seed_logger.logger flip_api.db.seed.seed_logger._handler Module Contents --------------- .. py:data:: logger .. py:data:: _handler