mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
(minor latency fixes / proxy) - use verbose_proxy_logger.debug() instead of litellm.print_verbose (#7664)
* minor latency fixes * fix code quality
This commit is contained in:
parent
768275f3ce
commit
b9dbc70a8e
3 changed files with 8 additions and 14 deletions
|
@ -4,8 +4,8 @@
|
|||
|
||||
from fastapi import HTTPException
|
||||
|
||||
import litellm
|
||||
from litellm import verbose_logger
|
||||
from litellm._logging import verbose_proxy_logger
|
||||
from litellm.caching.caching import DualCache
|
||||
from litellm.integrations.custom_logger import CustomLogger
|
||||
from litellm.proxy._types import UserAPIKeyAuth
|
||||
|
@ -16,10 +16,6 @@ class _PROXY_CacheControlCheck(CustomLogger):
|
|||
def __init__(self):
|
||||
pass
|
||||
|
||||
def print_verbose(self, print_statement):
|
||||
if litellm.set_verbose is True:
|
||||
print(print_statement) # noqa
|
||||
|
||||
async def async_pre_call_hook(
|
||||
self,
|
||||
user_api_key_dict: UserAPIKeyAuth,
|
||||
|
@ -28,7 +24,7 @@ class _PROXY_CacheControlCheck(CustomLogger):
|
|||
call_type: str,
|
||||
):
|
||||
try:
|
||||
self.print_verbose("Inside Cache Control Check Pre-Call Hook")
|
||||
verbose_proxy_logger.debug("Inside Cache Control Check Pre-Call Hook")
|
||||
allowed_cache_controls = user_api_key_dict.allowed_cache_controls
|
||||
|
||||
if data.get("cache", None) is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue