Skip to content

Commit

Permalink
Log each tile's location as it is written
Browse files Browse the repository at this point in the history
  • Loading branch information
melissalinkert committed Apr 28, 2021
1 parent ee8b8bd commit 60c4118
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,10 @@ private synchronized void writeToDisk(PyramidSeries s,
long[] byteCounts = ifd.getIFDLongArray(IFD.TILE_BYTE_COUNTS);
offsets[tileIndex] = outStream.getFilePointer();
byteCounts[tileIndex] = (long) realTile.length;
LOG.info(
"series = {}, resolution = {}, tile = {}, offset = {}, length = {}",
s.index, resolution, tileIndex,
offsets[tileIndex], byteCounts[tileIndex]);

outStream.write(realTile);

Expand Down

0 comments on commit 60c4118

Please sign in to comment.