forked from phoenix/litellm-mirror
fix(litellm_logging.py): fix error logging
This commit is contained in:
parent
df753a8ab2
commit
84285b9dbb
1 changed files with 2 additions and 2 deletions
|
@ -538,7 +538,7 @@ class Logging:
|
||||||
|
|
||||||
if complete_streaming_response is not None:
|
if complete_streaming_response is not None:
|
||||||
verbose_logger.debug(
|
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"] = (
|
self.model_call_details["complete_streaming_response"] = (
|
||||||
complete_streaming_response
|
complete_streaming_response
|
||||||
|
@ -1121,7 +1121,7 @@ class Logging:
|
||||||
)
|
)
|
||||||
if capture_exception: # log this error to sentry for debugging
|
if capture_exception: # log this error to sentry for debugging
|
||||||
capture_exception(e)
|
capture_exception(e)
|
||||||
except:
|
except Exception as e:
|
||||||
verbose_logger.error(
|
verbose_logger.error(
|
||||||
"LiteLLM.LoggingError: [Non-Blocking] Exception occurred while success logging {}\n{}".format(
|
"LiteLLM.LoggingError: [Non-Blocking] Exception occurred while success logging {}\n{}".format(
|
||||||
str(e), traceback.format_exc()
|
str(e), traceback.format_exc()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue