I am trying out uvicorn and whenever the server is run, it says INFO:uvicorn.error:Application
. How can I see what is causing the error? How do I print the error in the log?
» uvicorn serve:app --reload --log-level debug
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: Started reloader process [207627] using statreload
INFO: Started server process [207629]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO:uvicorn.error:Application startup complete.
I have tried log-level
but it doesnt seem to work
» uvicorn serve:app --reload --log-level trace
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: Started reloader process [207665] using statreload
INFO: Started server process [207667]
INFO: Waiting for application startup.
TRACE: ASGI [1] Started scope={'type': 'lifespan', 'asgi': {'version': '3.0', 'spec_version': '2.0'}}
TRACE: ASGI [1] Receive {'type': 'lifespan.startup'}
TRACE: ASGI [1] Send {'type': 'lifespan.startup.complete'}
TRACE:uvicorn.asgi:ASGI [1] Send {'type': 'lifespan.startup.complete'}
INFO: Application startup complete.
INFO:uvicorn.error:Application startup complete.