windshaft logger by config param

This commit is contained in:
Simon Martín
2019-10-28 15:41:46 +01:00
parent dd5825c770
commit db03bcdf8f
5 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -83,10 +83,11 @@ module.exports = class ApiRouter {
const metadataBackend = cartodbRedis({ pool: redisPool });
const pgConnection = new PgConnection(metadataBackend);
const windshaftLogger = environmentOptions.log_windshaft ? global.log4js.getLogger('[windshaft]') : null
const mapStore = new windshaft.storage.MapStore({
pool: redisPool,
expire_time: serverOptions.grainstore.default_layergroup_ttl,
logger: global.log4js.getLogger('[windshaft]')
logger: windshaftLogger
});
const rendererFactory = createRendererFactory({ redisPool, serverOptions, environmentOptions });