From 84285b9dbb1e08ac8003b0fbf1d1372826115bf9 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 17 Jun 2024 20:28:55 -0700 Subject: [PATCH] fix(litellm_logging.py): fix error logging --- litellm/litellm_core_utils/litellm_logging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/litellm_core_utils/litellm_logging.py b/litellm/litellm_core_utils/litellm_logging.py index 71cc8e6ab97..e2d0c9803fb 100644 --- a/litellm/litellm_core_utils/litellm_logging.py +++ b/litellm/litellm_core_utils/litellm_logging.py @@ -538,7 +538,7 @@ class Logging: if complete_streaming_response is not None: verbose_logger.debug( - f"Logging Details LiteLLM-Success Call streaming complete" + "Logging Details LiteLLM-Success Call streaming complete" ) self.model_call_details["complete_streaming_response"] = ( complete_streaming_response @@ -1121,7 +1121,7 @@ class Logging: ) if capture_exception: # log this error to sentry for debugging capture_exception(e) - except: + except Exception as e: verbose_logger.error( "LiteLLM.LoggingError: [Non-Blocking] Exception occurred while success logging {}\n{}".format( str(e), traceback.format_exc()