fix(litellm_logging.py): fix error logging

This commit is contained in:
Krrish Dholakia 2024-06-17 20:28:55 -07:00
parent df753a8ab2
commit 84285b9dbb

View file

@ -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()