Update litellm/integrations/langfuse/langfuse_prompt_management.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Harshit Jain 2026-03-02 21:28:36 +05:30 committed by GitHub
parent 2f927fef3b
commit 46c4d5b37d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -341,8 +341,8 @@ class LangfusePromptManagement(LangFuseLogger, PromptManagementBase, CustomLogge
status_message = str(kwargs.get("exception", "Unknown error"))
if standard_logging_object is not None:
status_message = standard_logging_object.get(
"error_str", status_message
)
"error_str", None
) or status_message
langfuse_logger_to_use.log_event_on_langfuse(
start_time=start_time,
end_time=end_time,