diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b54fd26..cc67a31b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - BREAKING: Renamed `function` field of the Function pydantic model to `archive`([#393](https://github.com/Substra/substra/pull/393)) - BREAKING: Renamed ComputeTask status ([#397](https://github.com/Substra/substra/pull/397)) +- `download_logs` uses the new endpoint ([#398](https://github.com/Substra/substra/pull/398)) ### Added diff --git a/substra/sdk/backends/remote/backend.py b/substra/sdk/backends/remote/backend.py index 2d115985..72030e07 100644 --- a/substra/sdk/backends/remote/backend.py +++ b/substra/sdk/backends/remote/backend.py @@ -325,7 +325,7 @@ def download_logs(self, task_key: str, destination_file: str = None) -> str: """Download the logs of a failed task. If destination_file is set, return the full destination path, otherwise, return the logs as a str. """ - url = f"{self._client.base_url}/logs/{task_key}/file/" + url = f"{self._client.base_url}/task/{task_key}/logs/" if destination_file: return self._download(url, destination_file)