forked from phoenix/litellm-mirror
(feat) fix litellm verbose logger
This commit is contained in:
parent
0da1737b59
commit
e36f1af389
1 changed files with 5 additions and 1 deletions
|
@ -866,6 +866,10 @@ class Logging:
|
||||||
curl_command += additional_args.get("request_str", None)
|
curl_command += additional_args.get("request_str", None)
|
||||||
elif api_base == "":
|
elif api_base == "":
|
||||||
curl_command = self.model_call_details
|
curl_command = self.model_call_details
|
||||||
|
|
||||||
|
# only print verbose if verbose logger is not set
|
||||||
|
if verbose_logger.level == 0:
|
||||||
|
# this means verbose logger was not switched on - user is in litellm.set_verbose=True
|
||||||
print_verbose(f"\033[92m{curl_command}\033[0m\n")
|
print_verbose(f"\033[92m{curl_command}\033[0m\n")
|
||||||
verbose_logger.info(f"\033[92m{curl_command}\033[0m\n")
|
verbose_logger.info(f"\033[92m{curl_command}\033[0m\n")
|
||||||
if self.logger_fn and callable(self.logger_fn):
|
if self.logger_fn and callable(self.logger_fn):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue