mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix(main.py): include traceback in error string
This commit is contained in:
parent
29e06f4e72
commit
f1bff50d60
1 changed files with 3 additions and 1 deletions
|
@ -368,7 +368,9 @@ async def acompletion(
|
|||
return response
|
||||
except Exception as e:
|
||||
verbose_logger.error(
|
||||
"litellm.acompletion(): Exception occured - {}".format(str(e))
|
||||
"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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue