mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
(fix) gunicorn - show request logs like uvicorn
This commit is contained in:
parent
3d7c169a58
commit
61dff3decb
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue