refactor(proxy/utils.py): add more debug logs

This commit is contained in:
Krrish Dholakia 2024-03-28 18:44:35 -07:00
parent eb318afe52
commit 7c44b32cc2
3 changed files with 4 additions and 2 deletions

View file

@ -70,7 +70,7 @@ If you want to **move** to a separate server, do this:
```bash ```bash
docker run -p 3000:3000 \ docker run -p 3000:3000 \
-e DATABASE_URL="postgres://.." \ -e DATABASE_URL="postgres://.." \
ghcr.io/berriai/litellm:litellm-spend_logs-latest ghcr.io/berriai/litellm-spend_logs:main-latest
# RUNNING on http://0.0.0.0:3000 # RUNNING on http://0.0.0.0:3000
``` ```

View file

@ -6,4 +6,5 @@ model_list:
api_base: https://exampleopenaiendpoint-production.up.railway.app/ api_base: https://exampleopenaiendpoint-production.up.railway.app/
general_settings: general_settings:
master_key: sk-1234 master_key: sk-1234
proxy_batch_write_at: 5

View file

@ -2024,6 +2024,7 @@ async def update_spend(
): ):
if not base_url.endswith("/"): if not base_url.endswith("/"):
base_url += "/" base_url += "/"
verbose_proxy_logger.debug("base_url: {}".format(base_url))
response = await db_writer_client.post( response = await db_writer_client.post(
url=base_url + "spend/update", url=base_url + "spend/update",
data=json.dumps(prisma_client.spend_log_transactons), # type: ignore data=json.dumps(prisma_client.spend_log_transactons), # type: ignore