uvicorn logging instead middleware
This commit is contained in:
9
run.py
9
run.py
@@ -4,7 +4,14 @@ import asyncio
|
||||
from server.database import db
|
||||
if __name__ == "__main__":
|
||||
asyncio.run(db.main())
|
||||
uvicorn.run("server.backend.endpoints:api", host="127.0.0.1", port=8000, reload=True)
|
||||
uvicorn.run(
|
||||
"server.backend.endpoints:api",
|
||||
host="127.0.0.1",
|
||||
port=8000,
|
||||
reload=True,
|
||||
log_level="info",
|
||||
access_log=True
|
||||
)
|
||||
|
||||
#ps aux | grep uvicorn
|
||||
# kill -9 pid
|
||||
Reference in New Issue
Block a user