mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix: clean up print verbose statements
This commit is contained in:
parent
5e0cfe82a7
commit
38bcc910b7
2 changed files with 4 additions and 6 deletions
|
@ -124,7 +124,6 @@ class CustomLogger: # https://docs.litellm.ai/docs/observability/custom_callbac
|
||||||
start_time,
|
start_time,
|
||||||
end_time,
|
end_time,
|
||||||
)
|
)
|
||||||
print_verbose(f"Custom Logger - final response object: {response_obj}")
|
|
||||||
except:
|
except:
|
||||||
# traceback.print_exc()
|
# traceback.print_exc()
|
||||||
print_verbose(f"Custom Logger Error - {traceback.format_exc()}")
|
print_verbose(f"Custom Logger Error - {traceback.format_exc()}")
|
||||||
|
@ -142,7 +141,6 @@ class CustomLogger: # https://docs.litellm.ai/docs/observability/custom_callbac
|
||||||
start_time,
|
start_time,
|
||||||
end_time,
|
end_time,
|
||||||
)
|
)
|
||||||
print_verbose(f"Custom Logger - final response object: {response_obj}")
|
|
||||||
except:
|
except:
|
||||||
# traceback.print_exc()
|
# traceback.print_exc()
|
||||||
print_verbose(f"Custom Logger Error - {traceback.format_exc()}")
|
print_verbose(f"Custom Logger Error - {traceback.format_exc()}")
|
||||||
|
|
|
@ -1738,10 +1738,10 @@ class Logging:
|
||||||
end_time=end_time,
|
end_time=end_time,
|
||||||
)
|
)
|
||||||
if callable(callback): # custom logger functions
|
if callable(callback): # custom logger functions
|
||||||
print_verbose(
|
# 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,
|
# logger_only=True,
|
||||||
)
|
# )
|
||||||
if self.stream:
|
if self.stream:
|
||||||
if (
|
if (
|
||||||
"async_complete_streaming_response"
|
"async_complete_streaming_response"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue