Merge pull request #4943 from dleen/logs

Fix: #4942. Remove verbose logging when exception can be handled
This commit is contained in:
Krish Dholakia 2024-07-29 12:12:28 -07:00 committed by GitHub
commit 63531a9824
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -413,11 +413,6 @@ async def acompletion(
) # sets the logging event loop if the user does sync streaming (e.g. on proxy for sagemaker calls)
return response
except Exception as e:
verbose_logger.error(
"litellm.acompletion(): Exception occured - {}\n{}".format(
str(e), traceback.format_exc()
)
)
verbose_logger.debug(traceback.format_exc())
custom_llm_provider = custom_llm_provider or "openai"
raise exception_type(