From e2213a1a5eb83e6370d9a7a9ae90c4b9f5f1bbb3 Mon Sep 17 00:00:00 2001 From: Mikkel Gravgaard Date: Fri, 12 Apr 2024 11:27:53 +0200 Subject: [PATCH] Use DEBUG level for curl command logging Currently, the INFO level is used, which can cause excessive logging in production. --- litellm/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/utils.py b/litellm/utils.py index 2d3d6d8733..e42909164b 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -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(