add to log anonymous maps instantiations that use overviews tables

Added to tiler profiler object:

overviewsAddedToMapconfig: true
mapType: 'anonymous'
This commit is contained in:
Eneko Lakasta
2018-09-04 15:13:17 +02:00
parent 95d179835c
commit 7df0fb456b
4 changed files with 32 additions and 12 deletions
@@ -152,8 +152,10 @@ function prepareAdapterMapConfig (mapConfigAdapter) {
}
};
mapConfigAdapter.getMapConfig(user, requestMapConfig, params, context, (err, requestMapConfig) => {
mapConfigAdapter.getMapConfig(user, requestMapConfig, params, context, (err, requestMapConfig, stats = { overviewsUsed : false}) => {
req.profiler.done('anonymous.getMapConfig');
req.profiler.add(stats);
if (err) {
return next(err);
}