We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58d1bf2 commit 5dc3017Copy full SHA for 5dc3017
1 file changed
lib/utils/configReader.js
@@ -1,6 +1,7 @@
1
var path = require('path');
2
3
var extend = require('lodash/object/extend');
4
+var defaults = require('lodash/object/defaults');
5
6
var collectorConfig = require('../config');
7
@@ -32,10 +33,7 @@ function getConfig() {
32
33
config.reporter = require('../reporters')[reporterType].create(reporterConfig);
34
}
35
- config.appName = collectorConfig.appName || config.appName;
36
-
37
- config.collectInterval = collectorConfig.collectInterval;
38
- config.sampleSize = collectorConfig.sampleSize;
+ config = defaults({}, collectorConfig, config);
39
40
//check if everything is ok with config
41
if (!config.appName) {
0 commit comments