mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
fix debug statements when intiializing prisma client
This commit is contained in:
parent
38da0cb3fb
commit
bb0ab26f72
2 changed files with 5 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue