From 61dff3decbe898b5c9473333949e7f9a657e4ece Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Sat, 13 Jan 2024 11:22:16 -0800 Subject: [PATCH] (fix) gunicorn - show request logs like uvicorn --- litellm/proxy/proxy_cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/proxy_cli.py b/litellm/proxy/proxy_cli.py index 2595e9717e..7cec869523 100644 --- a/litellm/proxy/proxy_cli.py +++ b/litellm/proxy/proxy_cli.py @@ -476,7 +476,9 @@ def run_server( "bind": f"{host}:{port}", "workers": num_workers, # default is 1 "worker_class": "uvicorn.workers.UvicornWorker", - "preload": True, # Add the preload flag + "preload": True, # Add the preload flag, + "accesslog": "-", # Log to stdout + "access_log_format": '%(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s', } StandaloneApplication( app=app, options=gunicorn_options