Skip to content

Commit

Permalink
Add logging for read_page (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunxuTang authored Feb 15, 2024
1 parent 765f837 commit 51c4ca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alluxio/alluxio_file_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ def _read_page(
path_id=path_id,
page_index=page_index,
)
print(page_url)
self.logger.debug(f"Reading full page request {page_url}")
else:
page_url = PAGE_URL_FORMAT.format(
worker_host=worker_host,
Expand All @@ -703,12 +703,12 @@ def _read_page(
page_offset=offset,
page_length=length,
)
self.logger.debug(f"Reading page request {page_url}")
response = self.session.get(page_url)
response.raise_for_status()
return response.content

except Exception as e:
print(e)
raise Exception(
f"Error when requesting file {path_id} page {page_index} from {worker_host}: error {e}"
) from e
Expand Down

0 comments on commit 51c4ca3

Please sign in to comment.