Be able to pass the logger to the analysis creation (camshaft) while instantiating a named map with analysis
This commit is contained in:
parent
6f9f53dd03
commit
d28744a5e3
@ -181,6 +181,8 @@ function getTemplate (
|
|||||||
params
|
params
|
||||||
);
|
);
|
||||||
|
|
||||||
|
mapConfigProvider.logger = res.locals.logger;
|
||||||
|
|
||||||
mapConfigProvider.getMapConfig((err, mapConfig, rendererParams, context, stats = {}) => {
|
mapConfigProvider.getMapConfig((err, mapConfig, rendererParams, context, stats = {}) => {
|
||||||
req.profiler.add(stats);
|
req.profiler.add(stats);
|
||||||
|
|
||||||
|
@ -129,6 +129,7 @@ module.exports = class NamedMapMapConfigProvider extends BaseMapConfigProvider {
|
|||||||
|
|
||||||
context.analysisConfiguration = {
|
context.analysisConfiguration = {
|
||||||
user: this.user,
|
user: this.user,
|
||||||
|
logger: this.logger,
|
||||||
db: {
|
db: {
|
||||||
host: rendererParams.dbhost,
|
host: rendererParams.dbhost,
|
||||||
port: rendererParams.dbport,
|
port: rendererParams.dbport,
|
||||||
|
Loading…
Reference in New Issue
Block a user