mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
add debug statements when connected to prisma db
This commit is contained in:
parent
dce7c459f8
commit
6fd1685106
1 changed files with 3 additions and 2 deletions
|
@ -804,7 +804,7 @@ class PrismaClient:
|
||||||
spend_log_transactions: List = []
|
spend_log_transactions: List = []
|
||||||
|
|
||||||
def __init__(self, database_url: str, proxy_logging_obj: ProxyLogging):
|
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'"
|
"LiteLLM: DATABASE_URL Set in config, trying to 'pip install prisma'"
|
||||||
)
|
)
|
||||||
## init logging object
|
## init logging object
|
||||||
|
@ -833,8 +833,9 @@ class PrismaClient:
|
||||||
os.chdir(original_dir)
|
os.chdir(original_dir)
|
||||||
# Now you can import the Prisma Client
|
# Now you can import the Prisma Client
|
||||||
from prisma import Prisma # type: ignore
|
from prisma import Prisma # type: ignore
|
||||||
|
verbose_proxy_logger.debug("Connecting Prisma Client to DB..")
|
||||||
self.db = Prisma() # Client to connect to Prisma 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):
|
def hash_token(self, token: str):
|
||||||
# Hash the string using SHA-256
|
# Hash the string using SHA-256
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue