Skip to content

Commit 51c317f

Browse files
trungdq88garris
authored andcommitted
Be more specific (#605)
* Be more specific Actually showing the user config if detected in `options`. * Only log userConfig if config.debug === true
1 parent df4266e commit 51c317f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/util/makeConfig.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ function loadProjectConfig (command, options, config) {
3636
var CMD_REQUIRES_CONFIG = command !== 'genConfig';
3737
if (CMD_REQUIRES_CONFIG) {
3838
if (options && typeof options.config === 'object') {
39-
console.log('Config detected:');
39+
console.log('User config detected.');
40+
if (options.config.debug) {
41+
console.log(JSON.stringify(options.config, null, 2));
42+
}
4043
userConfig = options.config;
4144
} else if (config.backstopConfigFileName) {
4245
try {

0 commit comments

Comments
 (0)