(app: FastAPI)
| 39 | |
| 40 | @asynccontextmanager |
| 41 | async def lifespan(app: FastAPI): |
| 42 | |
| 43 | try: |
| 44 | logger.info("fastapi app startup...") |
| 45 | logger.info("load all bundles and plugins") |
| 46 | bundle_ids = load_bundle_data() |
| 47 | load_all_bundle_handlers(bundle_ids) |
| 48 | bundle_plugin_ids = load_plugin_data(bundle_ids) |
| 49 | load_all_plugin_handlers(bundle_plugin_ids) |
| 50 | set_i18n_checksum() |
| 51 | |
| 52 | yield |
| 53 | |
| 54 | finally: |
| 55 | |
| 56 | logger.info("fastapi app shutdown...") |
| 57 | |
| 58 | |
| 59 | def init_route_logger(filters: List[str]): |
nothing calls this directly
no test coverage detected