From d0f9f8c0ed25164233ba255015eee5a0f2da0200 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Wed, 1 May 2024 08:25:04 -0700 Subject: [PATCH] fix(proxy/utils.py): emit number of spend transactions for keys being written to db in a batch --- litellm/proxy/utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index bde7f654f2e..97f679fd7f4 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -2049,6 +2049,11 @@ async def update_spend( raise e ### UPDATE KEY TABLE ### + verbose_proxy_logger.debug( + "KEY Spend transactions: {}".format( + len(prisma_client.key_list_transactons.keys()) + ) + ) if len(prisma_client.key_list_transactons.keys()) > 0: for i in range(n_retry_times + 1): start_time = time.time()