diff --git a/client/qiskit_serverless/core/job.py b/client/qiskit_serverless/core/job.py index b58d05332..2e3894977 100644 --- a/client/qiskit_serverless/core/job.py +++ b/client/qiskit_serverless/core/job.py @@ -484,7 +484,7 @@ def logs(self, job_id: str, log_type: Optional[str] = None): request=lambda: requests.get( f"{self.host}/api/{self.version}/jobs/{job_id}/logs/", headers={"Authorization": f"Bearer {self._token}"}, - params={"log_type": type}, + params={"log_type": log_type}, timeout=REQUESTS_TIMEOUT, ) ) @@ -643,7 +643,7 @@ def logs( # pylint: disable=unused-argument self, log_type: Optional[str] = None ) -> str: """Returns logs of the job.""" - return self._job_client.logs(self.job_id, type) + return self._job_client.logs(self.job_id, log_type) def filtered_logs(self, log_type: Optional[str] = None, **kwargs) -> str: """Returns logs of the job.