From bb0ab26f725cb8e2889edb5fb724e87009284d94 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 5 Nov 2024 20:29:24 -0800 Subject: [PATCH] fix debug statements when intiializing prisma client --- litellm/proxy/proxy_server.py | 4 +++- litellm/proxy/utils.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 8295364ba8d..277f5ab0d9b 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -3022,7 +3022,9 @@ class ProxyStartupEvent: - Sets up prisma client - Adds necessary views to proxy """ - verbose_proxy_logger.debug("Setting up Prisma Client...") + verbose_proxy_logger.debug( + "Setting up Prisma Client for db url %s...", database_url + ) prisma_client: Optional[PrismaClient] = None if database_url is not None: try: diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 7418f3f8ca5..54d4a8bea5e 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -1095,7 +1095,7 @@ class PrismaClient: from prisma import Prisma # type: ignore except Exception: raise Exception("Unable to find Prisma binaries.") - verbose_proxy_logger.debug("Connecting Prisma Client to DB..") + verbose_proxy_logger.debug("Creating Prisma Client..") if http_client is not None: self.db = PrismaWrapper( original_prisma=Prisma(http=http_client), @@ -1114,7 +1114,7 @@ class PrismaClient: else False ), ) # Client to connect to Prisma db - verbose_proxy_logger.debug("Success - Connected Prisma Client to DB") + verbose_proxy_logger.debug("Success - Created Prisma Client") def hash_token(self, token: str): # Hash the string using SHA-256