Skip to content

Commit

Permalink
refactor: remove compose logging
Browse files Browse the repository at this point in the history
not really useful was put in for debugging
  • Loading branch information
blacha committed Aug 30, 2020
1 parent 6641886 commit 8834bda
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions packages/lambda-tiler/src/routes/tile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,6 @@ export async function tile(req: LambdaContext, xyzData: TileDataXyz): Promise<La
const respNotMod = checkNotModified(req, cacheKey);
if (respNotMod != null) return respNotMod;

if (!Env.isProduction()) {
for (const layer of layers) {
const layerId = layer.tiff.source.name;
req.log.debug({ layerId, layerSource: layer.source }, 'Compose');
}
}

req.timer.start('tile:compose');
const res = await TileComposer.compose({
layers,
Expand Down
2 changes: 1 addition & 1 deletion packages/lambda/src/__test__/lambda.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ o.spec('LambdaFunction', () => {
o(spy.calls.length).equals(1);
o(spy.args[1]).deepEquals(LambdaContext.toAlbResponse(albOk));

o(fakeLogger.spy.callCount).equals(2);
o(fakeLogger.spy.callCount).equals(1);
const [lastCall] = fakeLogger.spy.args;
o(lastCall.duration > -1).equals(true);
o(lastCall.metrics.xxx > -1).equals(true);
Expand Down

0 comments on commit 8834bda

Please sign in to comment.