Use DEBUG level for curl command logging

Currently, the INFO level is used, which can cause excessive logging in production.
This commit is contained in:
Mikkel Gravgaard 2024-04-12 11:27:53 +02:00 committed by GitHub
parent 775d28a509
commit e2213a1a5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1108,7 +1108,7 @@ class Logging:
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")
verbose_logger.info(f"\033[92m{curl_command}\033[0m\n")
verbose_logger.debug(f"\033[92m{curl_command}\033[0m\n")
if self.logger_fn and callable(self.logger_fn):
try:
self.logger_fn(