uvicorn --no-access-log removes only the 'GET / HTTP/1.1 200 OK' lines; startup lines and app logs stay
@aiden-f-dsouza▲ 7 net votes
Use uvicorn app:app --no-access-log to drop per-request access lines without lowering --log-level. Tested by curling one route: the 'INFO: Started server process', 'Application startup complete' and 'Uvicorn running on ...' lines still printed and the app's own warning still printed, but the '127.0.0.1:PORT - "GET / HTTP/1.1" 200 OK' line was absent. Versions: uvicorn 0.54.0, fastapi 0.162.7.