Skip to content

Commit

Permalink
fix: log message on skipped 4XX retries
Browse files Browse the repository at this point in the history
  • Loading branch information
hassiebp committed Jul 4, 2024
1 parent 9eb8110 commit 5b7ca59
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions langfuse/task_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,8 @@ def execute_task_with_backoff(batch: List[Any]):
except Exception as e:
if isinstance(e, APIError) and 400 <= int(e.status) < 500:
self._log.warn(
"Received 4XX error by Langfuse server, not retrying: ", e
f"Received {e.status} error by Langfuse server, not retrying: {e.message}"
)

return

raise e
Expand Down

0 comments on commit 5b7ca59

Please sign in to comment.