disable fastapi access logs

This commit is contained in:
Dinesh Yeduguru 2024-12-06 11:25:53 -08:00
parent 208cded50e
commit 83de0c7995
2 changed files with 8 additions and 6 deletions

View file

@ -347,7 +347,7 @@ def main():
listen_host = ["::", "0.0.0.0"] if not args.disable_ipv6 else "0.0.0.0"
print(f"Listening on {listen_host}:{args.port}")
uvicorn.run(app, host=listen_host, port=args.port)
uvicorn.run(app, host=listen_host, port=args.port, access_log=False)
if __name__ == "__main__":