Merge pull request #5570 from BerriAI/litellm_fix_datadog

[Fix-Datdog Logger] Log exceptions when callbacks faces an error
This commit is contained in:
Ishaan Jaff 2024-09-06 16:32:16 -07:00 committed by GitHub
commit 42f56e4287
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -149,7 +149,7 @@ class DataDogLogger:
f"Datadog Layer Logging - final response object: {response_obj}"
)
except Exception as e:
verbose_logger.debug(
verbose_logger.exception(
f"Datadog Layer Error - {str(e)}\n{traceback.format_exc()}"
)
pass