Skip to content

Commit

Permalink
fix: add tiffName to log output
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Oct 6, 2019
1 parent d4307c2 commit 0b4e1a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/tiler/src/tiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ export class Tiler {
if (rasterBounds == null) {
return null;
}
logger.info({ inBounds: true }, 'TiffBoundsCheck');
const tiffName = tiff.source.name;
logger.info({ tiffName, inBounds: true }, 'TiffBoundsCheck');
// Find the best internal overview tiff to use with the desired XYZ resolution
const targetResolution = this.projection.getResolution(z);
const img = tiff.getImageByResolution(targetResolution);
Expand Down Expand Up @@ -188,7 +189,7 @@ export class Tiler {
}

const tiffTileCount = (endX - startX) * (endY - startY);
logger.info({ tiffTileCount, tiffTileUsed: composites.length }, 'TiffInBounds');
logger.info({ tiffName, tiffTileCount, tiffTileUsed: composites.length }, 'TiffInBounds');

if (composites.length === 0) {
return null;
Expand Down

0 comments on commit 0b4e1a8

Please sign in to comment.