Skip to content

Commit

Permalink
even more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kueda committed Sep 11, 2024
1 parent c5ccfb3 commit 5c646f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions elevation.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ async def cache_tile(tile, client, clean=False, max_retries=3, debug=False):
"skipping..."
)
return
util.log(f"opening tile path {file_path}")
async with aiofiles.open(file_path, 'wb') as outfile:
util.log(f"writing bytes to {file_path}")
async for chunk in download.aiter_bytes():
util.log(f"writing chunk to {file_path}")
await outfile.write(chunk)
Expand Down

0 comments on commit 5c646f1

Please sign in to comment.