From 37dc7de11e930aa4fce6a485e892f11ee714acd6 Mon Sep 17 00:00:00 2001 From: vince Date: Mon, 18 Jun 2018 10:58:33 +0200 Subject: [PATCH] fix: return the configuration and allow custom conf to override default values --- lib/ProcessUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ProcessUtils.js b/lib/ProcessUtils.js index 1f0b77032..4dad21969 100644 --- a/lib/ProcessUtils.js +++ b/lib/ProcessUtils.js @@ -20,9 +20,9 @@ module.exports = { deep_metrics: process.env.deep_monitoring === 'true' || false }; - Object.assign(conf, defaultConf); + const mergedConf = Object.assign(defaultConf, conf); - pmx.init(conf); + pmx.init(mergedConf); if(require('semver').satisfies(process.versions.node, '>= 8.0.0')) { var url = '';