Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

add debug statements when connected to prisma db

Ishaan Jaffa5cd041ccf83
diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py
index 923021efc24..d50a80eb3c8 100644
--- a/litellm/proxy/utils.py
+++ b/litellm/proxy/utils.py
@@ -804,7 +804,7 @@ class PrismaClient:
spend_log_transactions: List = []
def __init__(self, database_url: str, proxy_logging_obj: ProxyLogging):
- print_verbose(
+ verbose_proxy_logger.debug(
"LiteLLM: DATABASE_URL Set in config, trying to 'pip install prisma'"
)
## init logging object
@@ -833,8 +833,9 @@ class PrismaClient:
os.chdir(original_dir)
# Now you can import the Prisma Client
from prisma import Prisma # type: ignore
-
+ verbose_proxy_logger.debug("Connecting Prisma Client to DB..")
self.db = Prisma() # Client to connect to Prisma db
+ verbose_proxy_logger.debug("Success - Connected Prisma Client to DB")
def hash_token(self, token: str):
# Hash the string using SHA-256