Skip to content

Commit

Permalink
Add log on receiving empty tile
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Dec 18, 2024
1 parent a23b684 commit 6f5557e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tilecloud/store/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ def get_one(self, tile: Tile) -> Optional[Tile]:
try:
response = self.session.get(url)
if response.status_code in (404, 204):
logger.debug("Got empty tile from %s: %s", url, response.status_code)
return None
tile.content_encoding = response.headers.get("Content-Encoding")
tile.content_type = response.headers.get("Content-Type")
Expand Down

0 comments on commit 6f5557e

Please sign in to comment.