mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix(utils.py): fix logging
This commit is contained in:
parent
c8d1c857b5
commit
d362fc6eec
1 changed files with 4 additions and 3 deletions
|
@ -772,10 +772,10 @@ class ImageResponse(OpenAIObject):
|
|||
|
||||
|
||||
############################################################
|
||||
def print_verbose(print_statement):
|
||||
def print_verbose(print_statement, logger_only: bool = False):
|
||||
try:
|
||||
verbose_logger.debug(print_statement)
|
||||
if litellm.set_verbose:
|
||||
if litellm.set_verbose == True and logger_only == False:
|
||||
print(print_statement) # noqa
|
||||
except:
|
||||
pass
|
||||
|
@ -1739,7 +1739,8 @@ class Logging:
|
|||
)
|
||||
if callable(callback): # custom logger functions
|
||||
print_verbose(
|
||||
f"Making async function logging call for {callback}, result={result} - {self.model_call_details}"
|
||||
f"Making async function logging call for {callback}, result={result} - {self.model_call_details}",
|
||||
logger_only=True,
|
||||
)
|
||||
if self.stream:
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue