mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 01:04:32 +02:00
update todo and startup logging
This commit is contained in:
@@ -18,7 +18,6 @@ errors.install()
|
||||
|
||||
|
||||
def setup_middleware(app: FastAPI, cmd_opts):
|
||||
log.info('Initializing middleware')
|
||||
ssl._create_default_https_context = ssl._create_unverified_context # pylint: disable=protected-access
|
||||
uvicorn_logger=logging.getLogger("uvicorn.error")
|
||||
uvicorn_logger.disabled = True
|
||||
@@ -91,3 +90,4 @@ def setup_middleware(app: FastAPI, cmd_opts):
|
||||
return handle_exception(req, e)
|
||||
|
||||
app.build_middleware_stack() # rebuild middleware stack on-the-fly
|
||||
log.debug(f'FastAPI middleware: {[m.__class__.__name__ for m in app.user_middleware]}')
|
||||
|
||||
Reference in New Issue
Block a user