From 8a02156ac0c8fdc8ef481aea056bb0f0476ceba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Tue, 29 Oct 2019 10:31:31 +0100 Subject: [PATCH] fix tests --- lib/api/api-router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/api-router.js b/lib/api/api-router.js index 68b790e2..f5af6adf 100644 --- a/lib/api/api-router.js +++ b/lib/api/api-router.js @@ -83,7 +83,7 @@ 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 windshaftLogger = environmentOptions.log_windshaft && global.log4js ? global.log4js.getLogger('[windshaft]') : null; const mapStore = new windshaft.storage.MapStore({ pool: redisPool, expire_time: serverOptions.grainstore.default_layergroup_ttl,