Be able to pass the logger to the analysis creation (camshaft) while instantiating a named map with analysis

This commit is contained in:
Daniel García Aubert 2020-06-05 20:08:08 +02:00
parent 6f9f53dd03
commit d28744a5e3
2 changed files with 3 additions and 0 deletions

View File

@ -181,6 +181,8 @@ function getTemplate (
params
);
mapConfigProvider.logger = res.locals.logger;
mapConfigProvider.getMapConfig((err, mapConfig, rendererParams, context, stats = {}) => {
req.profiler.add(stats);

View File

@ -129,6 +129,7 @@ module.exports = class NamedMapMapConfigProvider extends BaseMapConfigProvider {
context.analysisConfiguration = {
user: this.user,
logger: this.logger,
db: {
host: rendererParams.dbhost,
port: rendererParams.dbport,