mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 07:26:18 -05:00
WROLPi runs alembic migrations in-process at startup (db_bootstrap). alembic/env.py called fileConfig unconditionally, which replaced the root handlers, set the root level to WARN, and disabled every logger that already existed, so the API's logs went quiet after any startup migration until the next restart. env.py now configures logging only when alembic runs from its command line (cmd_opts is set). This also caused an order-dependent test failure: test_jobs's capture test failed whenever test_db_bootstrap ran first in the same worker. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| versions | ||
| env.py | ||
| README | ||
| script.py.mako | ||
Generic single-database configuration.